public enum CheckpointType extends Enum<CheckpointType>
Enum Constant and Description |
---|
COMPOUND
This format uses kryo's chunked encoding to write multiple [checkpoint_name, checkpoint_bytes]
entries to the output stream.
|
INODE_PROTOS
This format sequentially writes delimited InodeMeta.Inode protocol buffers one after another
using the protocol buffer writeDelimitedTo method.
|
JOURNAL_ENTRY
This format sequentially writes delimited journal entries one after another using
the protocol buffer writeDelimitedTo method.
|
LONG
A checkpoint consisting of a single long value written by a data output stream.
|
LONGS
A series of longs written by
DataOutputStream . |
ROCKS
A RocksDB backup in .tar.gz format.
|
Modifier and Type | Method and Description |
---|---|
static CheckpointType |
fromLong(long id) |
CheckpointFormat |
getCheckpointFormat() |
long |
getId() |
static CheckpointType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CheckpointType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CheckpointType JOURNAL_ENTRY
public static final CheckpointType COMPOUND
public static final CheckpointType LONGS
DataOutputStream
.public static final CheckpointType ROCKS
public static final CheckpointType INODE_PROTOS
public static final CheckpointType LONG
public static CheckpointType[] values()
for (CheckpointType c : CheckpointType.values()) System.out.println(c);
public static CheckpointType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic long getId()
public CheckpointFormat getCheckpointFormat()
public static CheckpointType fromLong(long id)
id
- a checkpoint type idCopyright © 2023. All Rights Reserved.