1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 // This source code is licensed under both the GPLv2 (found in the 3 // COPYING file in the root directory) and Apache 2.0 License 4 // (found in the LICENSE.Apache file in the root directory). 5 6 package org.rocksdb; 7 8 9 /** 10 * DataBlockIndexType used in conjunction with BlockBasedTable. 11 */ 12 public enum DataBlockIndexType { 13 /** 14 * traditional block type 15 */ 16 kDataBlockBinarySearch((byte)0x0), 17 18 /** 19 * additional hash index 20 */ 21 kDataBlockBinaryAndHash((byte)0x1); 22 23 private final byte value; 24 DataBlockIndexType(final byte value)25 DataBlockIndexType(final byte value) { 26 this.value = value; 27 } 28 getValue()29 byte getValue() { 30 return value; 31 } 32 } 33