Package org.rocksdb
Enum WalFileType
- java.lang.Object
-
- java.lang.Enum<WalFileType>
-
- org.rocksdb.WalFileType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WalFileType>
public enum WalFileType extends java.lang.Enum<WalFileType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description kAliveLogFileIndicates that WAL file is live and resides in the main db directorykArchivedLogFileIndicates that WAL file is in archive directory.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WalFileTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WalFileType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kArchivedLogFile
public static final WalFileType kArchivedLogFile
Indicates that WAL file is in archive directory. WAL files are moved from the main db directory to archive directory once they are not live and stay there until cleaned up. Files are cleaned depending on archive size (Options::WAL_size_limit_MB) and time since last cleaning (Options::WAL_ttl_seconds).
-
kAliveLogFile
public static final WalFileType kAliveLogFile
Indicates that WAL file is live and resides in the main db directory
-
-
Method Detail
-
values
public static WalFileType[] 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 (WalFileType c : WalFileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WalFileType 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
-
-