Package dev.vortex.api
Class VortexWriter.Builder
java.lang.Object
dev.vortex.api.VortexWriter.Builder
- Enclosing class:
- VortexWriter
Configures and opens a
VortexWriter. Everything required to open one is fixed by
VortexWriter.builder(dev.vortex.api.Session, java.lang.String, org.apache.arrow.vector.types.pojo.Schema, org.apache.arrow.memory.BufferAllocator); the setters here are all optional.
Not thread-safe, and not reusable: each build() opens one file.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Open the writer.User-defined metadata segments to store in the file footer, replacing any set so far.Object-store credentials and options, replacing any set so far.putMetadata(String key, byte[] value) Add a single metadata segment.Add a single object-store option.
-
Method Details
-
options
Object-store credentials and options, replacing any set so far. Only the URI destination reaches a storage client, so this is rejected on a writer built over aNativeWritable. -
putOption
Add a single object-store option. Seeoptions(Map). -
metadata
User-defined metadata segments to store in the file footer, replacing any set so far.Values are opaque bytes, returned verbatim by
NativeFiles.readMetadata. The native writer caps both the number of segments per file and the length of each key; the limits are enforced (and named in the error) bybuild(), rather than when the file is finalized. -
putMetadata
Add a single metadata segment. Seemetadata(Map). -
build
Open the writer.- Throws:
IOException- if the writer cannot be opened, including when the native side rejects the configured metadata
-