Package org.rocksdb
Enum SizeApproximationFlag
- java.lang.Object
-
- java.lang.Enum<SizeApproximationFlag>
-
- org.rocksdb.SizeApproximationFlag
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SizeApproximationFlag>
public enum SizeApproximationFlag extends java.lang.Enum<SizeApproximationFlag>
Flags forRocksDB.getApproximateSizes(ColumnFamilyHandle, List, SizeApproximationFlag...)that specify whether memtable stats should be included, or file stats approximation or both.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INCLUDE_FILESINCLUDE_MEMTABLESNONE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SizeApproximationFlagvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SizeApproximationFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final SizeApproximationFlag NONE
-
INCLUDE_MEMTABLES
public static final SizeApproximationFlag INCLUDE_MEMTABLES
-
INCLUDE_FILES
public static final SizeApproximationFlag INCLUDE_FILES
-
-
Method Detail
-
values
public static SizeApproximationFlag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SizeApproximationFlag c : SizeApproximationFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SizeApproximationFlag valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-