@Namespace(value="parquet") @NoOffset @Properties(inherit=parquet.class) public class FileMetaData extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
FileMetaData(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
AppendRowGroups(FileMetaData other)
\brief Merge row groups from another metadata file into this one.
|
boolean |
can_decompress()
\brief Indicate if all of the FileMetadata's RowGroups can be decompressed.
|
String |
created_by()
\brief Return the application's user-agent string of the writer.
|
EncryptionAlgorithm |
encryption_algorithm() |
boolean |
Equals(FileMetaData other) |
String |
footer_signing_key_metadata() |
boolean |
is_encryption_algorithm_set() |
KeyValueMetadata |
key_value_metadata() |
static FileMetaData |
Make(Pointer serialized_metadata,
int[] inout_metadata_len) |
static FileMetaData |
Make(Pointer serialized_metadata,
int[] inout_metadata_len,
InternalFileDecryptor file_decryptor) |
static FileMetaData |
Make(Pointer serialized_metadata,
IntBuffer inout_metadata_len) |
static FileMetaData |
Make(Pointer serialized_metadata,
IntBuffer inout_metadata_len,
InternalFileDecryptor file_decryptor) |
static FileMetaData |
Make(Pointer serialized_metadata,
IntPointer inout_metadata_len) |
static FileMetaData |
Make(Pointer serialized_metadata,
IntPointer inout_metadata_len,
InternalFileDecryptor file_decryptor)
\brief Create a FileMetaData from a serialized thrift message.
|
int |
num_columns()
\brief The number of top-level columns in the schema.
|
int |
num_row_groups()
\brief The number of row groups in the file.
|
long |
num_rows()
\brief The total number of rows.
|
int |
num_schema_elements()
\brief The number of flattened schema elements.
|
RowGroupMetaData |
RowGroup(int index)
\brief Return the RowGroupMetaData of the corresponding row group ordinal.
|
SchemaDescriptor |
schema() |
String |
SerializeToString()
\brief Return Thrift-serialized representation of the metadata as a
string
|
void |
set_file_path(BytePointer path) |
void |
set_file_path(String path)
\brief Set a path to all ColumnChunk for all RowGroups.
|
int |
size()
\brief Size of the original thrift encoded metadata footer.
|
FileMetaData |
Subset(int[] row_groups) |
FileMetaData |
Subset(IntBuffer row_groups) |
FileMetaData |
Subset(IntPointer row_groups)
\brief Return a FileMetaData containing a subset of the row groups in this
FileMetaData.
|
boolean |
VerifySignature(Pointer signature)
\brief Verify signature of FileMetaData when file is encrypted but footer
is not encrypted (plaintext footer).
|
ParquetVersion.type |
version()
\brief Return the "version" of the file
WARNING: The value returned by this method is unreliable as 1) the Parquet
file metadata stores the version as a single integer and 2) some producers
are known to always write a hardcoded value.
|
ApplicationVersion |
writer_version()
\brief Return the application's version of the writer.
|
void |
WriteTo(OutputStream dst) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public FileMetaData(Pointer p)
Pointer(Pointer)
.@SharedPtr public static FileMetaData Make(@Const Pointer serialized_metadata, @Cast(value="uint32_t*") IntPointer inout_metadata_len, @SharedPtr InternalFileDecryptor file_decryptor)
@SharedPtr public static FileMetaData Make(@Const Pointer serialized_metadata, @Cast(value="uint32_t*") IntPointer inout_metadata_len)
@SharedPtr public static FileMetaData Make(@Const Pointer serialized_metadata, @Cast(value="uint32_t*") IntBuffer inout_metadata_len, @SharedPtr InternalFileDecryptor file_decryptor)
@SharedPtr public static FileMetaData Make(@Const Pointer serialized_metadata, @Cast(value="uint32_t*") IntBuffer inout_metadata_len)
@SharedPtr public static FileMetaData Make(@Const Pointer serialized_metadata, @Cast(value="uint32_t*") int[] inout_metadata_len, @SharedPtr InternalFileDecryptor file_decryptor)
@SharedPtr public static FileMetaData Make(@Const Pointer serialized_metadata, @Cast(value="uint32_t*") int[] inout_metadata_len)
@Cast(value="bool") public boolean Equals(@Const @ByRef FileMetaData other)
public int num_columns()
public int num_schema_elements()
public int num_row_groups()
@UniquePtr public RowGroupMetaData RowGroup(int index)
index
- [in] of the RowGroup to retrieve.ParquetException
- if the index is out of bound.public ParquetVersion.type version()
@StdString public String created_by()
@Const @ByRef public ApplicationVersion writer_version()
@Cast(value="uint32_t") public int size()
@Cast(value="bool") public boolean can_decompress()
@ByVal public EncryptionAlgorithm encryption_algorithm()
@StdString public String footer_signing_key_metadata()
@Cast(value="bool") public boolean VerifySignature(@Const Pointer signature)
public void WriteTo(OutputStream dst)
@StdString public String SerializeToString()
@Const public SchemaDescriptor schema()
@Const @SharedPtr public KeyValueMetadata key_value_metadata()
public void set_file_path(@StdString String path)
path
- [in] to set.public void set_file_path(@StdString BytePointer path)
public void AppendRowGroups(@Const @ByRef FileMetaData other)
other
- [in] FileMetaData to merge the row groups from.ParquetException
- if schemas are not equal.@SharedPtr public FileMetaData Subset(@StdVector IntPointer row_groups)
@SharedPtr public FileMetaData Subset(@StdVector IntBuffer row_groups)
@SharedPtr public FileMetaData Subset(@StdVector int[] row_groups)
Copyright © 2022. All rights reserved.