public class BitmapVectorOffset extends Object implements VectorOffset
NULL_ID| Constructor and Description |
|---|
BitmapVectorOffset(int vectorSize,
ImmutableBitmap bitmap,
int startOffset,
int endOffset) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
Advances by one batch.
|
int |
getCurrentVectorSize()
Returns the current vector size for this cursor.
|
int |
getId()
Returns an integer that uniquely identifies the current vector.
|
int |
getMaxVectorSize()
Returns the maximum vector size for this cursor.
|
int[] |
getOffsets()
If "isContiguous" is false, this method returns a batch of offsets.
|
int |
getStartOffset()
If "isContiguous" is true, this method returns the start offset of the range.
|
boolean |
isContiguous()
Checks if the current batch is a contiguous range or not.
|
boolean |
isDone()
Checks if iteration is "done", meaning the current batch of offsets is empty, and there are no more coming.
|
void |
reset()
Resets the object back to its original state.
|
public BitmapVectorOffset(int vectorSize,
ImmutableBitmap bitmap,
int startOffset,
int endOffset)
public int getId()
ReadableVectorInspectorgetId in interface ReadableVectorInspectorpublic void advance()
VectorOffsetadvance in interface VectorOffsetpublic boolean isDone()
VectorOffsetisDone in interface VectorOffsetpublic boolean isContiguous()
ReadableVectorOffsetisContiguous in interface ReadableVectorOffsetpublic int getMaxVectorSize()
VectorSizeInspectorgetMaxVectorSize in interface VectorSizeInspectorpublic int getCurrentVectorSize()
VectorSizeInspectorVectorSizeInspector.getMaxVectorSize().getCurrentVectorSize in interface VectorSizeInspectorpublic int getStartOffset()
ReadableVectorOffsetgetStartOffset in interface ReadableVectorOffsetpublic int[] getOffsets()
ReadableVectorOffsetgetOffsets in interface ReadableVectorOffsetpublic void reset()
VectorOffsetreset in interface VectorOffsetCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.