@Namespace(value="arrow::dataset") @NoOffset @Properties(inherit=arrow_dataset.class) public class Partitioning extends Pointer
\brief Interface for parsing partition expressions from string partition identifiers. For example, the identifier "foo=5" might be parsed to an equality expression between the "foo" field and the value 5. Some partitionings may store the field names in a metadata store instead of in file paths, for example dataset_root/2009/11/... could be used when the partition fields are "year" and "month" Paths are consumed from left to right. Paths must be relative to the root of a partition; path prefixes must be removed before passing the path to a partitioning for parsing.
Modifier and Type | Class and Description |
---|---|
static class |
Partitioning.PartitionedBatches
\brief If the input batch shares any fields with this partitioning,
produce sub-batches which satisfy mutually exclusive Expressions.
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Partitioning(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static Partitioning |
Default()
\brief A default Partitioning which always yields scalar(true)
|
StringResult |
Format(Expression expr) |
ExpressionResult |
Parse(BytePointer path) |
ExpressionResult |
Parse(String path)
\brief Parse a path into a partition expression
|
PartitionedBatchesResult |
Partition(RecordBatch batch) |
Schema |
schema()
\brief The partition schema.
|
String |
type_name()
\brief The name identifying the kind of partitioning
|
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 Partitioning(Pointer p)
Pointer(Pointer)
.@StdString public String type_name()
@ByVal public PartitionedBatchesResult Partition(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::RecordBatch>"}) RecordBatch batch)
@ByVal public ExpressionResult Parse(@StdString String path)
@ByVal public ExpressionResult Parse(@StdString BytePointer path)
@ByVal public StringResult Format(@Const @ByRef Expression expr)
@SharedPtr public static Partitioning Default()
@Const @SharedPtr @ByRef public Schema schema()
Copyright © 2022. All rights reserved.