Class SelectionVector4
java.lang.Object
org.apache.drill.exec.record.selection.SelectionVector4
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionSelectionVector4(io.netty.buffer.ByteBuf vector, int recordCount, int batchRecordCount) SelectionVector4(BufferAllocator allocator, int recordCount) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclose()voidcopy(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.intget(int index) static intgetBatchIndex(int sv4Index) intgetCount()static intgetRecordIndex(int sv4Index) intbooleanhasNext()booleannext()voidset(int index, int compound) voidset(int index, int recordBatch, int recordIndex) voidsetCount(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:
closein interfaceAutoCloseable
-
toString
-