public class BlockIndexEntry extends Object implements Comparable<BlockIndexEntry>
HFileBlockType.ROOT_INDEX block.
This is completely in-memory representation and does not involve byte parsing.
When comparing two BlockIndexEntry instances, the underlying bytes of the keys
are compared in lexicographical order.
| Constructor and Description |
|---|
BlockIndexEntry(Key firstKey,
Option<Key> nextBlockFirstKey,
long offset,
int size) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BlockIndexEntry o) |
Key |
getFirstKey() |
Option<Key> |
getNextBlockFirstKey() |
long |
getOffset() |
int |
getSize() |
String |
toString() |
public Key getFirstKey()
public long getOffset()
public int getSize()
public int compareTo(BlockIndexEntry o)
compareTo in interface Comparable<BlockIndexEntry>Copyright © 2024 The Apache Software Foundation. All rights reserved.