public class SelectionVector2 extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
static int |
RECORD_SIZE |
Constructor and Description |
---|
SelectionVector2(BufferAllocator allocator) |
SelectionVector2(BufferAllocator allocator,
DrillBuf buf,
int count)
Create a selection vector with the given buffer.
|
SelectionVector2(BufferAllocator allocator,
DrillBuf buf,
int count,
int actualRecordCount) |
Modifier and Type | Method and Description |
---|---|
void |
allocateNew(int size) |
boolean |
allocateNewSafe(int size) |
boolean |
canDoFullTransfer() |
void |
clear() |
SelectionVector2 |
clone() |
void |
close() |
int |
getBatchActualRecordCount() |
DrillBuf |
getBuffer() |
DrillBuf |
getBuffer(boolean clear) |
int |
getCount() |
long |
getDataAddr() |
char |
getIndex(int index) |
void |
setBatchActualRecordCount(int actualRecordCount) |
void |
setBuffer(DrillBuf bufferHandle) |
void |
setIndex(int index,
int value) |
void |
setRecordCount(int recordCount) |
String |
toString() |
public static final int RECORD_SIZE
public SelectionVector2(BufferAllocator allocator)
public SelectionVector2(BufferAllocator allocator, DrillBuf buf, int count)
allocator
- allocator used to allocate the bufferbuf
- the buffer containing the selection vector's datacount
- the number of values in the selection vectorpublic SelectionVector2(BufferAllocator allocator, DrillBuf buf, int count, int actualRecordCount)
public int getCount()
public DrillBuf getBuffer()
public DrillBuf getBuffer(boolean clear)
public void setBuffer(DrillBuf bufferHandle)
public char getIndex(int index)
public long getDataAddr()
public void setIndex(int index, int value)
public boolean allocateNewSafe(int size)
public void allocateNew(int size)
public SelectionVector2 clone()
public void clear()
public void setRecordCount(int recordCount)
public boolean canDoFullTransfer()
public void setBatchActualRecordCount(int actualRecordCount)
public int getBatchActualRecordCount()
public void close()
close
in interface AutoCloseable
Copyright © 1970 The Apache Software Foundation. All rights reserved.