public class BitVector.Accessor extends BaseValueVector.BaseAccessor
Constructor and Description |
---|
Accessor() |
Modifier and Type | Method and Description |
---|---|
int |
get(int index)
Get the byte holding the desired bit, then mask all other bits.
|
void |
get(int index,
BitHolder holder) |
void |
get(int index,
NullableBitHolder holder) |
int |
getNullCount()
Get the number nulls, this correspond to the number of bits set to 0 in the vector
|
Boolean |
getObject(int index)
Get the Java Object representation of the element at the specified position.
|
int |
getValueCount() |
boolean |
isNull(int index) |
public final int get(int index)
index
- position of the bit in the vectorpublic boolean isNull(int index)
isNull
in interface ValueVector.Accessor
isNull
in class BaseValueVector.BaseAccessor
index
- the index to check for nullitypublic final Boolean getObject(int index)
ValueVector.Accessor
index
- Index of the value to getpublic final int getValueCount()
public final void get(int index, BitHolder holder)
public final void get(int index, NullableBitHolder holder)
public final int getNullCount()
getNullCount
in interface ValueVector.Accessor
getNullCount
in class BaseValueVector.BaseAccessor
Copyright © 2017 The Apache Software Foundation. All rights reserved.