Class SelectionVector4
java.lang.Object
org.apache.drill.exec.record.selection.SelectionVector4
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorDescriptionSelectionVector4
(io.netty.buffer.ByteBuf vector, int recordCount, int batchRecordCount) SelectionVector4
(BufferAllocator allocator, int recordCount) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
close()
void
copy
(SelectionVector4 fromSV4) Caution: This method shares the underlying buffer between this vector and the newly created one.createNewWrapperCurrent
(int batchRecordCount) Caution: This method shares the underlying buffer between this vector and the newly created one.int
get
(int index) static int
getBatchIndex
(int sv4Index) int
getCount()
static int
getRecordIndex
(int sv4Index) int
boolean
hasNext()
boolean
next()
void
set
(int index, int compound) void
set
(int index, int recordBatch, int recordIndex) void
setCount
(int length) toString()
-
Constructor Details
-
SelectionVector4
public SelectionVector4(io.netty.buffer.ByteBuf vector, int recordCount, int batchRecordCount) -
SelectionVector4
-
-
Method Details
-
getTotalCount
public int getTotalCount() -
getCount
public int getCount() -
setCount
public void setCount(int length) -
set
public void set(int index, int compound) -
set
public void set(int index, int recordBatch, int recordIndex) -
get
public int get(int index) -
createNewWrapperCurrent
Caution: This method shares the underlying buffer between this vector and the newly created one.- Parameters:
batchRecordCount
- this will be used when creating the new vector- Returns:
- Newly created single batch SelectionVector4.
-
createNewWrapperCurrent
Caution: This method shares the underlying buffer between this vector and the newly created one.- Returns:
- Newly created single batch SelectionVector4.
-
next
public boolean next() -
hasNext
public boolean hasNext() -
clear
public void clear() -
copy
-
getBatchIndex
public static int getBatchIndex(int sv4Index) -
getRecordIndex
public static int getRecordIndex(int sv4Index) -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
toString
-