Class HdfsSequentialTextSink

java.lang.Object
org.apache.pulsar.io.hdfs3.AbstractHdfsConnector
org.apache.pulsar.io.hdfs3.sink.HdfsAbstractSink<K,V>
org.apache.pulsar.io.hdfs3.sink.seq.HdfsAbstractSequenceFileSink<Long,String,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
org.apache.pulsar.io.hdfs3.sink.seq.HdfsSequentialTextSink
All Implemented Interfaces:
AutoCloseable, Sink<String>

public class HdfsSequentialTextSink extends HdfsAbstractSequenceFileSink<Long,String,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
This Sink should be used when the records are originating from a sequential source, and we want to retain the record sequence.This class uses the record's sequence id as the sequence id in the HDFS Sequence File if it is available, if not a sequence id is auto-generated for each new record.