java.lang.Object
org.apache.arrow.vector.BaseValueVector
org.apache.arrow.vector.ExtensionTypeVector<FieldVector>
org.apache.arrow.vector.extension.OpaqueVector
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<ValueVector>,FieldVector,ValueIterableVector<Object>,ValueVector
public class OpaqueVector
extends ExtensionTypeVector<FieldVector>
implements ValueIterableVector<Object>
Opaque is a wrapper for (usually binary) data from an external (often non-Arrow) system that
could not be interpreted.
-
Field Summary
Fields inherited from class org.apache.arrow.vector.BaseValueVector
allocator, fieldReader, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, validityBuffer, valueCount -
Constructor Summary
ConstructorsConstructorDescriptionOpaqueVector(Field field, BufferAllocator allocator, FieldVector underlyingVector) -
Method Summary
Modifier and TypeMethodDescriptiongetField()Get information about how this field is materialized.getObject(int index) Get the extension object at the specified index.inthashCode(int index) Returns hashCode of element in index with the default hasher.inthashCode(int index, ArrowBufHasher hasher) Returns hashCode of element in index with the given hasher.Methods inherited from class org.apache.arrow.vector.ExtensionTypeVector
accept, allocateNew, allocateNewSafe, clear, close, getAllocator, getBuffers, getBufferSize, getBufferSizeFor, getChildrenFromFields, getDataBuffer, getDataBufferAddress, getFieldBuffers, getFieldInnerVectors, getMinorType, getName, getNullCount, getOffsetBuffer, getOffsetBufferAddress, getReaderImpl, getTransferPair, getTransferPair, getTransferPair, getTransferPair, getTransferPair, getUnderlyingVector, getValidityBuffer, getValidityBufferAddress, getValueCapacity, getValueCount, initializeChildrenFromFields, isNull, iterator, loadFieldBuffers, makeTransferPair, reAlloc, reset, setInitialCapacity, setNull, setValueCountMethods inherited from class org.apache.arrow.vector.BaseValueVector
allocateValidityBuffer, checkBufRefs, copyFrom, copyFromSafe, copyValidityBuffer, getReader, getValidityBufferSizeFromCount, releaseBuffer, sliceAndTransferValidityBuffer, splitAndTransferValidityBuffer, toString, transferBufferMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.arrow.vector.FieldVector
exportBuffer, exportCDataBuffers, getExportedCDataBufferCountMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.apache.arrow.vector.ValueIterableVector
getValueIterable, getValueIteratorMethods inherited from interface org.apache.arrow.vector.ValueVector
accept, allocateNew, allocateNewSafe, clear, close, copyFrom, copyFromSafe, getAllocator, getBuffers, getBufferSize, getBufferSizeFor, getDataBuffer, getMinorType, getName, getNullCount, getOffsetBuffer, getReader, getTransferPair, getTransferPair, getTransferPair, getTransferPair, getTransferPair, getValidityBuffer, getValueCapacity, getValueCount, isNull, makeTransferPair, reAlloc, reset, setInitialCapacity, setValueCount, validate, validateFull
-
Constructor Details
-
OpaqueVector
-
-
Method Details
-
getField
Description copied from interface:ValueVectorGet information about how this field is materialized.- Specified by:
getFieldin interfaceValueVector- Overrides:
getFieldin classExtensionTypeVector<FieldVector>- Returns:
- the field corresponding to this vector
-
getObject
Description copied from class:ExtensionTypeVectorGet the extension object at the specified index.Generally, this should access the underlying vector and construct the corresponding Java object from the raw data.
- Specified by:
getObjectin interfaceValueVector- Specified by:
getObjectin classExtensionTypeVector<FieldVector>- Parameters:
index- index of object to get- Returns:
- friendly type object, null if value is unset
-
hashCode
public int hashCode(int index) Description copied from interface:ValueVectorReturns hashCode of element in index with the default hasher.- Specified by:
hashCodein interfaceValueVector
-
hashCode
Description copied from interface:ValueVectorReturns hashCode of element in index with the given hasher.- Specified by:
hashCodein interfaceValueVector
-