public static class FileSystemTableSink.TableBucketAssigner extends Object implements BucketAssigner<RowData,String>
PartitionComputer
.BucketAssigner.Context
Constructor and Description |
---|
TableBucketAssigner(PartitionComputer<RowData> computer) |
Modifier and Type | Method and Description |
---|---|
String |
getBucketId(RowData element,
BucketAssigner.Context context)
Returns the identifier of the bucket the provided element should be put into.
|
SimpleVersionedSerializer<String> |
getSerializer() |
public TableBucketAssigner(PartitionComputer<RowData> computer)
public String getBucketId(RowData element, BucketAssigner.Context context)
BucketAssigner
getBucketId
in interface BucketAssigner<RowData,String>
element
- The current element being processed.context
- The context used by the current bucket assigner.base path
provided during the initialization of the file sink.public SimpleVersionedSerializer<String> getSerializer()
getSerializer
in interface BucketAssigner<RowData,String>
SimpleVersionedSerializer
capable of serializing/deserializing the elements
of type BucketID
. That is the type of the objects returned by the BucketAssigner.getBucketId(Object, BucketAssigner.Context)
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.