public interface BulkInsertPartitioner<I> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
arePartitionRecordsSorted() |
default String |
getFileIdPfx(int partitionId)
Return file group id prefix for the given data partition.
|
default Option<WriteHandleFactory> |
getWriteHandleFactory(int partitionId)
Return write handle factory for the given partition.
|
I |
repartitionRecords(I records,
int outputPartitions)
Repartitions the input records into at least expected number of output partitions.
|
I repartitionRecords(I records, int outputPartitions)
records - Input Hoodie recordsoutputPartitions - Expected number of output partitionsboolean arePartitionRecordsSorted()
true if the records within a partition are sorted; false otherwise.default String getFileIdPfx(int partitionId)
partitionId - data partitiondefault Option<WriteHandleFactory> getWriteHandleFactory(int partitionId)
partitionId - data partitionCopyright © 2022 The Apache Software Foundation. All rights reserved.