| 程序包 | 说明 |
|---|---|
| org.apache.flink.connector.file.sink | |
| org.apache.flink.connector.file.sink.compactor | |
| org.apache.flink.connector.file.sink.compactor.operator |
| 限定符和类型 | 方法和说明 |
|---|---|
T |
FileSink.RowFormatBuilder.enableCompact(FileCompactStrategy strategy,
FileCompactor compactor) |
T |
FileSink.BulkFormatBuilder.enableCompact(FileCompactStrategy strategy,
FileCompactor compactor) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ConcatFileCompactor
A
OutputStreamBasedFileCompactor implementation that simply concat the compacting files. |
class |
IdenticalFileCompactor
A simple
OutputStreamBasedFileCompactor implementation that directly copy the content of
the only input file to the output. |
class |
OutputStreamBasedFileCompactor
Base class for
FileCompactor implementations that write the compacting file by a output
stream. |
class |
RecordWiseFileCompactor<IN>
A
FileCompactor implementation that reads input files with a RecordWiseFileCompactor.Reader and writes
with a RecordWiseFileCompactor.Writer. |
| 构造器和说明 |
|---|
CompactorOperator(FileCompactStrategy strategy,
org.apache.flink.core.io.SimpleVersionedSerializer<FileSinkCommittable> committableSerializer,
FileCompactor fileCompactor,
org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<?,String> bucketWriter) |
CompactorOperatorFactory(FileCompactStrategy strategy,
FileCompactor fileCompactor,
org.apache.flink.util.function.SerializableSupplierWithException<org.apache.flink.core.io.SimpleVersionedSerializer<FileSinkCommittable>,IOException> committableSerializerSupplier,
org.apache.flink.util.function.SerializableSupplierWithException<org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<?,String>,IOException> bucketWriterProvider) |
CompactService(int numCompactThreads,
FileCompactor fileCompactor,
org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<?,String> bucketWriter) |
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.