public static class BytesBytesMultiHashMap.Result extends Object
Constructor and Description |
---|
BytesBytesMultiHashMap.Result() |
Modifier and Type | Method and Description |
---|---|
WriteBuffers.ByteSegmentRef |
first() |
void |
forget()
Lets go of any references to a hash map.
|
WriteBuffers.Position |
getReadPos()
Return the thread-safe read position.
|
boolean |
hasRows() |
boolean |
isEof() |
boolean |
isSingleRow() |
WriteBuffers.ByteSegmentRef |
next() |
void |
set(BytesBytesMultiHashMap hashMap,
long firstOffset,
boolean hasList,
long offsetAfterListRecordKeyLen)
Set internal values for reading the values after finding a key.
|
public WriteBuffers.Position getReadPos()
public boolean hasRows()
public boolean isSingleRow()
public void set(BytesBytesMultiHashMap hashMap, long firstOffset, boolean hasList, long offsetAfterListRecordKeyLen)
hashMap
- The hash map we found the key in.firstOffset
- The absolute offset of the first record in the write buffers.hasList
- Whether there are multiple values (true) or just a single value (false).offsetAfterListRecordKeyLen
- The offset of just after the key length in the list record. Or, 0 when single row.public WriteBuffers.ByteSegmentRef first()
public WriteBuffers.ByteSegmentRef next()
public boolean isEof()
public void forget()
Copyright © 2017 The Apache Software Foundation. All rights reserved.