public class HdfsSequentialTextSink extends HdfsAbstractSequenceFileSink<Long,String,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
hdfsStream, writerhdfsSinkConfig, syncThread, unackedRecordscompressionCodecFactory, connectorConfig, hdfsResources| Constructor and Description |
|---|
HdfsSequentialTextSink() |
| Modifier and Type | Method and Description |
|---|---|
KeyValue<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text> |
convert(KeyValue<Long,String> kv) |
KeyValue<Long,String> |
extractKeyValue(org.apache.pulsar.functions.api.Record<String> record) |
protected List<org.apache.hadoop.io.SequenceFile.Writer.Option> |
getOptions() |
org.apache.hadoop.io.SequenceFile.Writer |
getWriter() |
close, createWriter, writeconnectToHdfs, getHdfsStream, getPath, launchSyncThread, opencheckHdfsUriForTimeout, getCompressionCodec, getCompressionCodecFactory, getConfiguration, getEncoding, getFileSystem, getFileSystem, getFileSystemAsUser, getUserGroupInformation, resetHDFSResourcespublic org.apache.hadoop.io.SequenceFile.Writer getWriter()
throws IOException
getWriter in class HdfsAbstractSequenceFileSink<Long,String,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>IOExceptionprotected List<org.apache.hadoop.io.SequenceFile.Writer.Option> getOptions() throws IllegalArgumentException, IOException
getOptions in class HdfsAbstractSequenceFileSink<Long,String,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>IllegalArgumentExceptionIOExceptionpublic KeyValue<Long,String> extractKeyValue(org.apache.pulsar.functions.api.Record<String> record)
extractKeyValue in class HdfsAbstractSink<Long,String>Copyright © 2017–2022 Apache Software Foundation. All rights reserved.