Class Checkpoint
- java.lang.Object
-
- org.apache.iotdb.db.wal.checkpoint.Checkpoint
-
- All Implemented Interfaces:
SerializedSize
public class Checkpoint extends java.lang.Object implements SerializedSize
Checkpoint is the basic element of .checkpoint file, including type, number of memTables, and brief information of each memTable.
-
-
Constructor Summary
Constructors Constructor Description Checkpoint(CheckpointType type, java.util.List<MemTableInfo> memTableInfos)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Checkpointdeserialize(java.io.DataInputStream stream)booleanequals(java.lang.Object obj)java.util.List<MemTableInfo>getMemTableInfos()CheckpointTypegetType()voidserialize(java.nio.ByteBuffer buffer)intserializedSize()Calculate size after serialization.
-
-
-
Constructor Detail
-
Checkpoint
public Checkpoint(CheckpointType type, java.util.List<MemTableInfo> memTableInfos)
-
-
Method Detail
-
serializedSize
public int serializedSize()
Description copied from interface:SerializedSizeCalculate size after serialization.- Specified by:
serializedSizein interfaceSerializedSize- Returns:
- bytes number
-
serialize
public void serialize(java.nio.ByteBuffer buffer)
-
deserialize
public static Checkpoint deserialize(java.io.DataInputStream stream) throws java.io.IOException
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getType
public CheckpointType getType()
-
getMemTableInfos
public java.util.List<MemTableInfo> getMemTableInfos()
-
-