K - V - public abstract class HdfsAbstractTextFileSink<K,V> extends HdfsAbstractSink<K,V> implements Sink<V>
| Modifier and Type | Field and Description |
|---|---|
protected OutputStreamWriter |
writer |
hdfsSinkConfig, syncThread, unackedRecordscompressionCodecFactory, connectorConfig, hdfsResources| Constructor and Description |
|---|
HdfsAbstractTextFileSink() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
createWriter() |
void |
write(org.apache.pulsar.functions.api.Record<V> record) |
connectToHdfs, extractKeyValue, getHdfsStream, getPath, launchSyncThread, opencheckHdfsUriForTimeout, getCompressionCodec, getCompressionCodecFactory, getConfiguration, getEncoding, getFileSystem, getFileSystem, getFileSystemAsUser, getUserGroupInformation, resetHDFSResourcesprotected OutputStreamWriter writer
protected void createWriter()
throws IOException
createWriter in class HdfsAbstractSink<K,V>IOExceptionpublic void close()
throws Exception
close in interface AutoCloseableclose in class HdfsAbstractSink<K,V>ExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.