Class HdfsAbstractSequenceFileSink<K,V,HdfsK,HdfsV>

java.lang.Object
org.apache.pulsar.io.hdfs2.AbstractHdfsConnector
org.apache.pulsar.io.hdfs2.sink.HdfsAbstractSink<K,V>
org.apache.pulsar.io.hdfs2.sink.seq.HdfsAbstractSequenceFileSink<K,V,HdfsK,HdfsV>
Type Parameters:
K - - The incoming Key type
V - - The incoming Value type
HdfsK - - The HDFS Key type
HdfsV - - The HDFS Value type
All Implemented Interfaces:
AutoCloseable, org.apache.pulsar.io.core.Sink<V>
Direct Known Subclasses:
HdfsSequentialTextSink, HdfsTextSink

public abstract class HdfsAbstractSequenceFileSink<K,V,HdfsK,HdfsV> extends HdfsAbstractSink<K,V> implements org.apache.pulsar.io.core.Sink<V>
HDFS Sink that writes it contents to HDFS as Sequence Files.
  • Field Details

    • counter

      protected AtomicLong counter
    • hdfsStream

      protected org.apache.hadoop.fs.FSDataOutputStream hdfsStream
    • writer

      protected org.apache.hadoop.io.SequenceFile.Writer writer
  • Constructor Details

    • HdfsAbstractSequenceFileSink

      public HdfsAbstractSequenceFileSink()
  • Method Details