Class MetadataIndexNode
- java.lang.Object
-
- org.apache.iotdb.tsfile.file.metadata.MetadataIndexNode
-
public class MetadataIndexNode extends Object
-
-
Constructor Summary
Constructors Constructor Description MetadataIndexNode(List<MetadataIndexEntry> children, long endOffset, MetadataIndexNodeType nodeType)MetadataIndexNode(MetadataIndexNodeType nodeType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntry(MetadataIndexEntry metadataIndexEntry)static MetadataIndexNodedeserializeFrom(ByteBuffer buffer)Pair<MetadataIndexEntry,Long>getChildIndexEntry(String key, boolean exactSearch)List<MetadataIndexEntry>getChildren()longgetEndOffset()MetadataIndexNodeTypegetNodeType()booleanisFull()intserializeTo(OutputStream outputStream)voidsetEndOffset(long endOffset)
-
-
-
Constructor Detail
-
MetadataIndexNode
public MetadataIndexNode(MetadataIndexNodeType nodeType)
-
MetadataIndexNode
public MetadataIndexNode(List<MetadataIndexEntry> children, long endOffset, MetadataIndexNodeType nodeType)
-
-
Method Detail
-
getChildren
public List<MetadataIndexEntry> getChildren()
-
getEndOffset
public long getEndOffset()
-
setEndOffset
public void setEndOffset(long endOffset)
-
getNodeType
public MetadataIndexNodeType getNodeType()
-
addEntry
public void addEntry(MetadataIndexEntry metadataIndexEntry)
-
isFull
public boolean isFull()
-
serializeTo
public int serializeTo(OutputStream outputStream) throws IOException
- Throws:
IOException
-
deserializeFrom
public static MetadataIndexNode deserializeFrom(ByteBuffer buffer)
-
getChildIndexEntry
public Pair<MetadataIndexEntry,Long> getChildIndexEntry(String key, boolean exactSearch)
-
-