public class BitVector.Mutator extends BaseValueVector.BaseMutator
Modifier and Type | Method and Description |
---|---|
void |
generateTestData(int values) |
void |
generateTestDataAlt(int size) |
void |
set(int index,
BitHolder holder) |
void |
set(int index,
int value)
Set the bit at the given index to the specified value.
|
void |
setRangeToOne(int firstBitIndex,
int count)
set count bits to 1 in data starting at firstBitIndex
|
void |
setSafe(int index,
BitHolder holder) |
void |
setSafe(int index,
int value) |
void |
setSafe(int index,
NullableBitHolder holder) |
void |
setSafeToOne(int index) |
void |
setToOne(int index)
Set the bit at the given index to 1.
|
void |
setValueCount(int valueCount)
Sets the number of values that is stored in this vector to the given value count.
|
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 setToOne(int index)
index
- position of the bit to setpublic void setRangeToOne(int firstBitIndex, int count)
firstBitIndex
- the index of the first bit to setcount
- the number of bits to setpublic final void set(int index, BitHolder holder)
public void setSafe(int index, int value)
public void setSafeToOne(int index)
public void setSafe(int index, BitHolder holder)
public void setSafe(int index, 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
values
- the number of values to generatepublic void generateTestDataAlt(int size)
Copyright © 2017 The Apache Software Foundation. All rights reserved.