@Namespace(value="parquet") @Properties(inherit=parquet.class) public class Statistics extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Statistics(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
ColumnDescriptor |
descr()
\brief The full type descriptor from the column schema
|
long |
distinct_count()
\brief The number of distinct values, may not be set
|
EncodedStatistics |
Encode()
\brief The finalized encoded form of the statistics for transport
|
String |
EncodeMax()
\brief Plain-encoded maximum value
|
String |
EncodeMin()
\brief Plain-encoded minimum value
|
boolean |
Equals(Statistics other)
\brief Check two Statistics for equality
|
boolean |
HasDistinctCount()
\brief Return true if the count of distinct values is set
|
boolean |
HasMinMax()
\brief Return true if the min and max statistics are set.
|
boolean |
HasNullCount()
\brief Return true if the count of null values is set
|
static Statistics |
Make(ColumnDescriptor descr) |
static Statistics |
Make(ColumnDescriptor descr,
BytePointer encoded_min,
BytePointer encoded_max,
long num_values,
long null_count,
long distinct_count,
boolean has_min_max,
boolean has_null_count,
boolean has_distinct_count) |
static Statistics |
Make(ColumnDescriptor descr,
BytePointer encoded_min,
BytePointer encoded_max,
long num_values,
long null_count,
long distinct_count,
boolean has_min_max,
boolean has_null_count,
boolean has_distinct_count,
MemoryPool pool) |
static Statistics |
Make(ColumnDescriptor descr,
MemoryPool pool)
\brief Create a new statistics instance given a column schema
definition
|
static Statistics |
Make(ColumnDescriptor descr,
String encoded_min,
String encoded_max,
long num_values,
long null_count,
long distinct_count,
boolean has_min_max,
boolean has_null_count,
boolean has_distinct_count) |
static Statistics |
Make(ColumnDescriptor descr,
String encoded_min,
String encoded_max,
long num_values,
long null_count,
long distinct_count,
boolean has_min_max,
boolean has_null_count,
boolean has_distinct_count,
MemoryPool pool)
\brief Create a new statistics instance given a column schema
definition and pre-existing state
|
long |
null_count()
\brief The number of null values, may not be set
|
long |
num_values()
\brief The total number of values in the column
|
Type.type |
physical_type()
\brief The physical type of the column schema
|
void |
Reset()
\brief Reset state of object to initial (no data observed) state
|
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 Statistics(Pointer p)
Pointer(Pointer)
.@SharedPtr public static Statistics Make(@Const ColumnDescriptor descr, MemoryPool pool)
descr
- [in] the column schemapool
- [in] a memory pool to use for any memory allocations, optional@SharedPtr public static Statistics Make(@Const ColumnDescriptor descr)
@SharedPtr public static Statistics Make(@Const ColumnDescriptor descr, @StdString String encoded_min, @StdString String encoded_max, @Cast(value="int64_t") long num_values, @Cast(value="int64_t") long null_count, @Cast(value="int64_t") long distinct_count, @Cast(value="bool") boolean has_min_max, @Cast(value="bool") boolean has_null_count, @Cast(value="bool") boolean has_distinct_count, MemoryPool pool)
descr
- [in] the column schemaencoded_min
- [in] the encoded minimum valueencoded_max
- [in] the encoded maximum valuenum_values
- [in] total number of valuesnull_count
- [in] number of null valuesdistinct_count
- [in] number of distinct valueshas_min_max
- [in] whether the min/max statistics are sethas_null_count
- [in] whether the null_count statistics are sethas_distinct_count
- [in] whether the distinct_count statistics are setpool
- [in] a memory pool to use for any memory allocations, optional@SharedPtr public static Statistics Make(@Const ColumnDescriptor descr, @StdString String encoded_min, @StdString String encoded_max, @Cast(value="int64_t") long num_values, @Cast(value="int64_t") long null_count, @Cast(value="int64_t") long distinct_count, @Cast(value="bool") boolean has_min_max, @Cast(value="bool") boolean has_null_count, @Cast(value="bool") boolean has_distinct_count)
@SharedPtr public static Statistics Make(@Const ColumnDescriptor descr, @StdString BytePointer encoded_min, @StdString BytePointer encoded_max, @Cast(value="int64_t") long num_values, @Cast(value="int64_t") long null_count, @Cast(value="int64_t") long distinct_count, @Cast(value="bool") boolean has_min_max, @Cast(value="bool") boolean has_null_count, @Cast(value="bool") boolean has_distinct_count, MemoryPool pool)
@SharedPtr public static Statistics Make(@Const ColumnDescriptor descr, @StdString BytePointer encoded_min, @StdString BytePointer encoded_max, @Cast(value="int64_t") long num_values, @Cast(value="int64_t") long null_count, @Cast(value="int64_t") long distinct_count, @Cast(value="bool") boolean has_min_max, @Cast(value="bool") boolean has_null_count, @Cast(value="bool") boolean has_distinct_count)
@Cast(value="bool") public boolean HasNullCount()
@Cast(value="int64_t") public long null_count()
@Cast(value="bool") public boolean HasDistinctCount()
@Cast(value="int64_t") public long distinct_count()
@Cast(value="int64_t") public long num_values()
@Cast(value="bool") public boolean HasMinMax()
public void Reset()
@StdString public String EncodeMin()
@StdString public String EncodeMax()
@ByVal public EncodedStatistics Encode()
public Type.type physical_type()
@Const public ColumnDescriptor descr()
@Cast(value="bool") public boolean Equals(@Const @ByRef Statistics other)
Copyright © 2022. All rights reserved.