@Namespace(value="parquet") @NoOffset @Properties(inherit=parquet.class) public class ParquetFileWriter extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
ParquetFileWriter.Contents |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ParquetFileWriter() |
ParquetFileWriter(long size)
Native array allocator.
|
ParquetFileWriter(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
RowGroupWriter |
AppendBufferedRowGroup()
Construct a RowGroupWriter that buffers all the values until the RowGroup is ready.
|
RowGroupWriter |
AppendRowGroup()
Construct a RowGroupWriter with an arbitrary number of rows.
|
RowGroupWriter |
AppendRowGroup(long num_rows) |
void |
Close() |
ColumnDescriptor |
descr(int i)
Returns a column descriptor in schema
|
ParquetFileWriter |
getPointer(long i) |
KeyValueMetadata |
key_value_metadata()
Returns the file custom metadata
|
FileMetaData |
metadata()
Returns the file metadata, only available after calling Close().
|
int |
num_columns()
Number of columns.
|
int |
num_row_groups()
Number of started RowGroups.
|
long |
num_rows()
Number of rows in the yet started RowGroups.
|
static ParquetFileWriter |
Open(OutputStream sink,
GroupNode schema) |
static ParquetFileWriter |
Open(OutputStream sink,
GroupNode schema,
WriterProperties properties,
KeyValueMetadata key_value_metadata) |
void |
Open(ParquetFileWriter.Contents contents) |
ParquetFileWriter |
position(long position) |
WriterProperties |
properties()
Configuration passed to the writer, e.g.
|
SchemaDescriptor |
schema()
Returns the file schema descriptor
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public ParquetFileWriter(Pointer p)
Pointer(Pointer)
.public ParquetFileWriter(long size)
Pointer.position(long)
.public ParquetFileWriter()
public ParquetFileWriter position(long position)
public ParquetFileWriter getPointer(long i)
getPointer
in class Pointer
@UniquePtr public static ParquetFileWriter Open(@SharedPtr OutputStream sink, @SharedPtr GroupNode schema, @SharedPtr WriterProperties properties, @Const @SharedPtr KeyValueMetadata key_value_metadata)
@UniquePtr public static ParquetFileWriter Open(@SharedPtr OutputStream sink, @SharedPtr GroupNode schema)
public void Open(@UniquePtr ParquetFileWriter.Contents contents)
public void Close()
public RowGroupWriter AppendRowGroup(@Cast(value="int64_t") long num_rows)
public RowGroupWriter AppendRowGroup()
public RowGroupWriter AppendBufferedRowGroup()
public int num_columns()
@Cast(value="int64_t") public long num_rows()
public int num_row_groups()
@SharedPtr public WriterProperties properties()
@Const public SchemaDescriptor schema()
@Const public ColumnDescriptor descr(int i)
@Const @SharedPtr public KeyValueMetadata key_value_metadata()
@SharedPtr public FileMetaData metadata()
Copyright © 2022. All rights reserved.