public class ZeroVector extends Object implements FieldVector
修飾子とタイプ | フィールドと説明 |
---|---|
static ZeroVector |
INSTANCE |
コンストラクタと説明 |
---|
ZeroVector() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
allocateNew()
Allocate new buffers.
|
boolean |
allocateNewSafe()
Allocates new buffers.
|
void |
clear()
Release any owned ArrowBuf and reset the ValueVector to the initial state.
|
void |
close()
Alternative to clear().
|
BufferAllocator |
getAllocator() |
ArrowBuf[] |
getBuffers(boolean clear)
Return the underlying buffers associated with this vector.
|
int |
getBufferSize() |
int |
getBufferSizeFor(int valueCount)
Returns the number of bytes that is used by this vector if it holds the given number
of values.
|
List<FieldVector> |
getChildrenFromFields()
the returned list is the same size as the list passed to initializeChildrenFromFields
|
ArrowBuf |
getDataBuffer()
Gets the underlying buffer associated with data vector
|
long |
getDataBufferAddress()
Gets the starting address of the underlying buffer associated with data vector
|
Field |
getField()
Get information about how this field is materialized.
|
List<ArrowBuf> |
getFieldBuffers()
(same size as getFieldVectors() since it is their content)
|
List<BufferBacked> |
getFieldInnerVectors() |
Types.MinorType |
getMinorType() |
int |
getNullCount()
Returns number of null elements in the vector
|
Object |
getObject(int index)
Get friendly type object from the vector
|
ArrowBuf |
getOffsetBuffer()
Gets the underlying buffer associated with offset vector
|
long |
getOffsetBufferAddress()
Gets the starting address of the underlying buffer associated with offset vector
|
FieldReader |
getReader() |
TransferPair |
getTransferPair(BufferAllocator allocator)
to transfer quota responsibility
|
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator) |
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator,
CallBack callBack) |
ArrowBuf |
getValidityBuffer()
Gets the underlying buffer associated with validity vector
|
long |
getValidityBufferAddress()
Gets the starting address of the underlying buffer associated with validity vector
|
int |
getValueCapacity()
Returns the maximum number of values that can be stored in this vector instance.
|
int |
getValueCount()
Gets the number of values
|
void |
initializeChildrenFromFields(List<Field> children)
Initializes the child vectors
to be later loaded with loadBuffers
|
boolean |
isNull(int index)
Check whether an element in the vector is null
|
Iterator<ValueVector> |
iterator() |
void |
loadFieldBuffers(ArrowFieldNode fieldNode,
List<ArrowBuf> ownBuffers)
loads data in the vectors
(ownBuffers must be the same size as getFieldVectors())
|
TransferPair |
makeTransferPair(ValueVector target)
makes a new transfer pair used to transfer underlying buffers
|
void |
reAlloc()
Allocate new buffer with double capacity, and copy data into the new buffer.
|
void |
reset()
Reset the ValueVector to the initial state without releasing any owned ArrowBuf.
|
void |
setInitialCapacity(int numRecords)
Set the initial record capacity
|
void |
setValueCount(int valueCount)
Set number of values in the vector
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static final ZeroVector INSTANCE
public void close()
ValueVector
close
インタフェース内 Closeable
close
インタフェース内 AutoCloseable
close
インタフェース内 ValueVector
public void clear()
ValueVector
clear
インタフェース内 ValueVector
public void reset()
ValueVector
reset
インタフェース内 ValueVector
public Field getField()
ValueVector
getField
インタフェース内 ValueVector
public Types.MinorType getMinorType()
getMinorType
インタフェース内 ValueVector
public TransferPair getTransferPair(BufferAllocator allocator)
ValueVector
getTransferPair
インタフェース内 ValueVector
allocator
- the target allocatortransfer pair
, creating a new target vector of
the same type.public Iterator<ValueVector> iterator()
iterator
インタフェース内 Iterable<ValueVector>
public int getBufferSize()
getBufferSize
インタフェース内 ValueVector
public int getBufferSizeFor(int valueCount)
ValueVector
getBufferSizeFor
インタフェース内 ValueVector
valueCount
- the number of values to assume this vector containspublic ArrowBuf[] getBuffers(boolean clear)
ValueVector
getBuffers
インタフェース内 ValueVector
clear
- Whether to clear vector before returning; the buffers will still be refcounted;
but the returned array will be the only reference to thembuffers
that is used by this vector instance.public void allocateNew() throws OutOfMemoryException
ValueVector
allocateNew
インタフェース内 ValueVector
OutOfMemoryException
- Thrown if no memory can be allocated.public boolean allocateNewSafe()
ValueVector
allocateNewSafe
インタフェース内 ValueVector
public void reAlloc()
ValueVector
reAlloc
インタフェース内 ValueVector
public BufferAllocator getAllocator()
getAllocator
インタフェース内 ValueVector
public void setInitialCapacity(int numRecords)
ValueVector
setInitialCapacity
インタフェース内 ValueVector
numRecords
- the initial record capacity.public int getValueCapacity()
ValueVector
getValueCapacity
インタフェース内 ValueVector
public TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair
インタフェース内 ValueVector
public TransferPair getTransferPair(String ref, BufferAllocator allocator, CallBack callBack)
getTransferPair
インタフェース内 ValueVector
public TransferPair makeTransferPair(ValueVector target)
ValueVector
makeTransferPair
インタフェース内 ValueVector
target
- the target for the transfertransfer pair
that is used to transfer underlying
buffers into the target vector.public FieldReader getReader()
getReader
インタフェース内 ValueVector
field reader
that supports reading values
from this vector.public void initializeChildrenFromFields(List<Field> children)
FieldVector
initializeChildrenFromFields
インタフェース内 FieldVector
children
- the schemapublic List<FieldVector> getChildrenFromFields()
FieldVector
getChildrenFromFields
インタフェース内 FieldVector
public void loadFieldBuffers(ArrowFieldNode fieldNode, List<ArrowBuf> ownBuffers)
FieldVector
loadFieldBuffers
インタフェース内 FieldVector
fieldNode
- the fieldNodeownBuffers
- the buffers for this Field (own buffers only, children not included)public List<ArrowBuf> getFieldBuffers()
FieldVector
getFieldBuffers
インタフェース内 FieldVector
public List<BufferBacked> getFieldInnerVectors()
getFieldInnerVectors
インタフェース内 FieldVector
public long getValidityBufferAddress()
FieldVector
getValidityBufferAddress
インタフェース内 FieldVector
public long getDataBufferAddress()
FieldVector
getDataBufferAddress
インタフェース内 FieldVector
public long getOffsetBufferAddress()
FieldVector
getOffsetBufferAddress
インタフェース内 FieldVector
public ArrowBuf getValidityBuffer()
ValueVector
getValidityBuffer
インタフェース内 ValueVector
public ArrowBuf getDataBuffer()
ValueVector
getDataBuffer
インタフェース内 ValueVector
public ArrowBuf getOffsetBuffer()
ValueVector
getOffsetBuffer
インタフェース内 ValueVector
public int getValueCount()
ValueVector
getValueCount
インタフェース内 ValueVector
public void setValueCount(int valueCount)
ValueVector
setValueCount
インタフェース内 ValueVector
public Object getObject(int index)
ValueVector
getObject
インタフェース内 ValueVector
public int getNullCount()
ValueVector
getNullCount
インタフェース内 ValueVector
public boolean isNull(int index)
ValueVector
isNull
インタフェース内 ValueVector
Copyright © 2018 The Apache Software Foundation. All rights reserved.