public class MetadataIndexNode extends Object
| Constructor and Description |
|---|
MetadataIndexNode(List<MetadataIndexEntry> children,
long endOffset,
MetadataIndexNodeType nodeType) |
MetadataIndexNode(MetadataIndexNodeType nodeType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(MetadataIndexEntry metadataIndexEntry) |
static MetadataIndexNode |
deserializeFrom(ByteBuffer buffer) |
Pair<MetadataIndexEntry,Long> |
getChildIndexEntry(String key,
boolean exactSearch) |
List<MetadataIndexEntry> |
getChildren() |
long |
getEndOffset() |
MetadataIndexNodeType |
getNodeType() |
int |
serializeTo(OutputStream outputStream) |
void |
setEndOffset(long endOffset) |
public MetadataIndexNode(MetadataIndexNodeType nodeType)
public MetadataIndexNode(List<MetadataIndexEntry> children, long endOffset, MetadataIndexNodeType nodeType)
public List<MetadataIndexEntry> getChildren()
public long getEndOffset()
public void setEndOffset(long endOffset)
public MetadataIndexNodeType getNodeType()
public void addEntry(MetadataIndexEntry metadataIndexEntry)
public int serializeTo(OutputStream outputStream) throws IOException
IOExceptionpublic static MetadataIndexNode deserializeFrom(ByteBuffer buffer)
public Pair<MetadataIndexEntry,Long> getChildIndexEntry(String key, boolean exactSearch)
Copyright © 2022 The Apache Software Foundation. All rights reserved.