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 position of the offset.
|
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()
ReadableVectorOffset
getId
in interface ReadableVectorOffset
public void advance()
VectorOffset
advance
in interface VectorOffset
public boolean isDone()
VectorOffset
isDone
in interface VectorOffset
public boolean isContiguous()
ReadableVectorOffset
isContiguous
in interface ReadableVectorOffset
public int getMaxVectorSize()
VectorSizeInspector
getMaxVectorSize
in interface VectorSizeInspector
public int getCurrentVectorSize()
VectorSizeInspector
VectorSizeInspector.getMaxVectorSize()
.getCurrentVectorSize
in interface VectorSizeInspector
public int getStartOffset()
ReadableVectorOffset
getStartOffset
in interface ReadableVectorOffset
public int[] getOffsets()
ReadableVectorOffset
getOffsets
in interface ReadableVectorOffset
public void reset()
VectorOffset
reset
in interface VectorOffset
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.