public class HadoopPathBasedPartFileWriter<IN,BucketID>
extends org.apache.flink.streaming.api.functions.sink.filesystem.AbstractPartFileWriter<IN,BucketID>
| 限定符和类型 | 类和说明 |
|---|---|
static class |
HadoopPathBasedPartFileWriter.HadoopPathBasedBucketWriter<IN,BucketID>
Factory to create
HadoopPathBasedPartFileWriter. |
| 构造器和说明 |
|---|
HadoopPathBasedPartFileWriter(BucketID bucketID,
HadoopPathBasedBulkWriter<IN> writer,
HadoopFileCommitter fileCommitter,
long createTime) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.streaming.api.functions.sink.filesystem.InProgressFileWriter.PendingFileRecoverable |
closeForCommit() |
void |
dispose() |
long |
getSize() |
org.apache.flink.streaming.api.functions.sink.filesystem.InProgressFileWriter.InProgressFileRecoverable |
persist() |
void |
write(IN element,
long currentTime) |
getBucketId, getCreationTime, getLastUpdateTime, markWritepublic HadoopPathBasedPartFileWriter(BucketID bucketID, HadoopPathBasedBulkWriter<IN> writer, HadoopFileCommitter fileCommitter, long createTime)
public void write(IN element, long currentTime) throws IOException
IOExceptionpublic org.apache.flink.streaming.api.functions.sink.filesystem.InProgressFileWriter.InProgressFileRecoverable persist()
public org.apache.flink.streaming.api.functions.sink.filesystem.InProgressFileWriter.PendingFileRecoverable closeForCommit()
throws IOException
IOExceptionpublic void dispose()
public long getSize()
throws IOException
IOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.