public class MapRecord extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
BITS_PER_LEVEL
Number of bits of the hash code to look at on each level of the trie.
|
protected static int |
BUCKETS_PER_LEVEL
Number of buckets at each level of the trie.
|
protected static int |
LEVEL_BITS
Number of bits needed to indicate the current trie level.
|
protected static int |
MAX_NUMBER_OF_LEVELS
Maximum number of trie levels.
|
protected static int |
MAX_SIZE
Maximum size of a map.
|
protected static int |
SIZE_BITS
Number of bits used to indicate the size of a map.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
protected int |
getOffset()
Returns the segment offset of this record.
|
protected int |
getOffset(int position)
Returns the segment offset of the given byte position in this record.
|
protected int |
getOffset(int bytes,
int ids)
Returns the segment offset of a byte position in this record.
|
RecordId |
getRecordId()
Returns the identifier of this record.
|
protected Segment |
getSegment()
Returns the segment that contains this record.
|
int |
hashCode() |
boolean |
isDiff() |
String |
toString() |
protected static final int BITS_PER_LEVEL
protected static final int BUCKETS_PER_LEVEL
protected static final int MAX_NUMBER_OF_LEVELS
protected static final int LEVEL_BITS
protected static final int SIZE_BITS
protected static final int MAX_SIZE
public boolean isDiff()
public String toString()
protected Segment getSegment()
public RecordId getRecordId()
protected final int getOffset()
protected final int getOffset(int position)
position
- byte position within this recordprotected final int getOffset(int bytes, int ids)
bytes
- number of raw bytes before the positionids
- number of record identifiers before the positionCopyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.