public class BitVector.Mutator extends BaseValueVector.BaseMutator
Modifier and Type | Method and Description |
---|---|
void |
generateTestData(int values) |
void |
set(int index,
org.apache.drill.exec.expr.holders.BitHolder holder) |
void |
set(int index,
int value)
Set the bit at the given index to the specified value.
|
void |
setSafe(int index,
org.apache.drill.exec.expr.holders.BitHolder holder) |
void |
setSafe(int index,
int value) |
void |
setSafe(int index,
org.apache.drill.exec.expr.holders.NullableBitHolder holder) |
void |
setValueCount(int valueCount)
Sets the number of values that is stored in this vector to the given value count.
|
exchange, reset
public final void set(int index, int value)
index
- position of the bit to setvalue
- value to set (either 1 or 0)public final void set(int index, org.apache.drill.exec.expr.holders.BitHolder holder)
public void setSafe(int index, int value)
public void setSafe(int index, org.apache.drill.exec.expr.holders.BitHolder holder)
public void setSafe(int index, org.apache.drill.exec.expr.holders.NullableBitHolder holder)
public final void setValueCount(int valueCount)
ValueVector.Mutator
valueCount
- value count to set.public final void generateTestData(int values)
generateTestData
in interface ValueVector.Mutator
generateTestData
in class BaseValueVector.BaseMutator
Copyright © 2021 The Apache Software Foundation. All rights reserved.