1 // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. 2 package org.rocksdb; 3 4 import java.util.List; 5 6 /** 7 * Flags for 8 * {@link RocksDB#getApproximateSizes(ColumnFamilyHandle, List, SizeApproximationFlag...)} 9 * that specify whether memtable stats should be included, 10 * or file stats approximation or both. 11 */ 12 public enum SizeApproximationFlag { 13 NONE((byte)0x0), 14 INCLUDE_MEMTABLES((byte)0x1), 15 INCLUDE_FILES((byte)0x2); 16 17 private final byte value; 18 SizeApproximationFlag(final byte value)19 SizeApproximationFlag(final byte value) { 20 this.value = value; 21 } 22 23 /** 24 * Get the internal byte representation. 25 * 26 * @return the internal representation. 27 */ getValue()28 byte getValue() { 29 return value; 30 } 31 } 32