Uses of Class
org.apache.arrow.vector.VectorSchemaRoot
Packages that use VectorSchemaRoot
Package
Description
-
Uses of VectorSchemaRoot in org.apache.arrow.vector
Methods in org.apache.arrow.vector that return VectorSchemaRootModifier and TypeMethodDescriptionVectorSchemaRoot.addVector(int index, FieldVector vector) Add vector to the record batch, producing a new VectorSchemaRoot.static VectorSchemaRootVectorSchemaRoot.create(Schema schema, BufferAllocator allocator) Creates a new set of empty vectors corresponding to the given schema.static VectorSchemaRootVectorSchemaRoot.of(FieldVector... vectors) Constructs a new instance from vectors.VectorSchemaRoot.removeVector(int index) Remove vector from the record batch, producing a new VectorSchemaRoot.VectorSchemaRoot.slice(int index) Slice this root from desired index.VectorSchemaRoot.slice(int index, int length) Slice this root at desired index and length.Methods in org.apache.arrow.vector with parameters of type VectorSchemaRootModifier and TypeMethodDescriptionbooleanVectorSchemaRoot.approxEquals(VectorSchemaRoot other) Determine if two VectorSchemaRoots are approximately equal using default functions to calculate difference between float/double values.booleanVectorSchemaRoot.approxEquals(VectorSchemaRoot other, VectorValueEqualizer<Float4Vector> floatDiffFunction, VectorValueEqualizer<Float8Vector> doubleDiffFunction) Determine if two VectorSchemaRoots are approximately equal using the given functions to calculate difference between float/double values.booleanVectorSchemaRoot.equals(VectorSchemaRoot other) Determine if two VectorSchemaRoots are exactly equal.Constructors in org.apache.arrow.vector with parameters of type VectorSchemaRootModifierConstructorDescriptionVectorLoader(VectorSchemaRoot root) Construct with a root to load and will create children in root based on schema.VectorLoader(VectorSchemaRoot root, CompressionCodec.Factory factory) Construct with a root to load and will create children in root based on schema.Constructs a new instance of the given set of vectors.VectorUnloader(VectorSchemaRoot root, boolean includeNullCount, boolean alignBuffers) Constructs a new instance.VectorUnloader(VectorSchemaRoot root, boolean includeNullCount, CompressionCodec codec, boolean alignBuffers) Constructs a new instance. -
Uses of VectorSchemaRoot in org.apache.arrow.vector.ipc
Methods in org.apache.arrow.vector.ipc that return VectorSchemaRootModifier and TypeMethodDescriptionArrowReader.getVectorSchemaRoot()Returns the vector schema root.JsonFileReader.read()Returns the next record batch from the file.Methods in org.apache.arrow.vector.ipc with parameters of type VectorSchemaRootModifier and TypeMethodDescriptionbooleanJsonFileReader.read(VectorSchemaRoot root) Reads the next record batch from the file intoroot.voidJsonFileWriter.write(VectorSchemaRoot recordBatch) Writes the record batch to the JSON file.Constructors in org.apache.arrow.vector.ipc with parameters of type VectorSchemaRootModifierConstructorDescriptionArrowFileWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out) ArrowFileWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, Map<String, String> metaData) ArrowFileWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, Map<String, String> metaData, IpcOption option) ArrowFileWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, Map<String, String> metaData, IpcOption option, CompressionCodec.Factory compressionFactory, CompressionUtil.CodecType codecType) ArrowFileWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, Map<String, String> metaData, IpcOption option, CompressionCodec.Factory compressionFactory, CompressionUtil.CodecType codecType, Optional<Integer> compressionLevel) ArrowFileWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, IpcOption option) ArrowStreamWriter(VectorSchemaRoot root, DictionaryProvider provider, OutputStream out) Construct an ArrowStreamWriter with an optional DictionaryProvider for the OutputStream.ArrowStreamWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out) Construct an ArrowStreamWriter with an optional DictionaryProvider for the WritableByteChannel.ArrowStreamWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, IpcOption option) Construct an ArrowStreamWriter with an optional DictionaryProvider for the WritableByteChannel.ArrowStreamWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, IpcOption option, CompressionCodec.Factory compressionFactory, CompressionUtil.CodecType codecType) Construct an ArrowStreamWriter with compression enabled.ArrowStreamWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, IpcOption option, CompressionCodec.Factory compressionFactory, CompressionUtil.CodecType codecType, Optional<Integer> compressionLevel) Construct an ArrowStreamWriter with compression enabled.protectedArrowWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out) protectedArrowWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, IpcOption option) protectedArrowWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, IpcOption option, CompressionCodec.Factory compressionFactory, CompressionUtil.CodecType codecType, Optional<Integer> compressionLevel) Note: fields are not closed when the writer is closed. -
Uses of VectorSchemaRoot in org.apache.arrow.vector.table
Methods in org.apache.arrow.vector.table that return VectorSchemaRootModifier and TypeMethodDescriptionBaseTable.toVectorSchemaRoot()Returns a new VectorSchemaRoot with the data and schema from this table.Constructors in org.apache.arrow.vector.table with parameters of type VectorSchemaRootModifierConstructorDescriptionTable(VectorSchemaRoot vsr) Constructs a new instance containing the data from the argument. -
Uses of VectorSchemaRoot in org.apache.arrow.vector.util
Methods in org.apache.arrow.vector.util with parameters of type VectorSchemaRootModifier and TypeMethodDescriptionstatic voidVectorSchemaRootAppender.append(boolean checkSchema, VectorSchemaRoot targetRoot, VectorSchemaRoot... rootsToAppend) Appends a number ofVectorSchemaRoots.static voidVectorSchemaRootAppender.append(VectorSchemaRoot targetRoot, VectorSchemaRoot... rootsToAppend) Appends a number ofVectorSchemaRoots.static voidValidator.compareVectorSchemaRoot(VectorSchemaRoot root1, VectorSchemaRoot root2) Validate two arrow vectorSchemaRoot are equal.static voidValueVectorUtility.ensureCapacity(VectorSchemaRoot root, int targetCapacity) Ensure capacity for BaseFixedWidthVector.static voidValueVectorUtility.preAllocate(VectorSchemaRoot root, int targetSize) Pre allocate memory for BaseFixedWidthVector.static voidValueVectorUtility.validate(VectorSchemaRoot root) Utility to validate vector schema root in O(1) time.static voidValueVectorUtility.validateFull(VectorSchemaRoot root) Utility to validate vector in O(n) time, where n is the value count.