类 HdfsAbstractSequenceFileSink<K,V,HdfsK,HdfsV>
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<K,V,HdfsK,HdfsV>
- 类型参数:
K- - The incoming Key typeV- - The incoming Value typeHdfsK- - The HDFS Key typeHdfsV- - The HDFS Value type
- 所有已实现的接口:
AutoCloseable,org.apache.pulsar.io.core.Sink<V>
- 直接已知子类:
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.
-
字段概要
字段修饰符和类型字段说明protected AtomicLongprotected org.apache.hadoop.fs.FSDataOutputStreamprotected org.apache.hadoop.io.SequenceFile.Writer从类继承的字段 org.apache.pulsar.io.hdfs3.sink.HdfsAbstractSink
hdfsSinkConfig, syncThread, unackedRecords从类继承的字段 org.apache.pulsar.io.hdfs3.AbstractHdfsConnector
compressionCodecFactory, connectorConfig, hdfsResources -
构造器概要
构造器 -
方法概要
从类继承的方法 org.apache.pulsar.io.hdfs3.sink.HdfsAbstractSink
connectToHdfs, extractKeyValue, getHdfsStream, getOutputStreamBuilder, getPath, launchSyncThread, open从类继承的方法 org.apache.pulsar.io.hdfs3.AbstractHdfsConnector
checkHdfsUriForTimeout, getCompressionCodec, getCompressionCodecFactory, getConfiguration, getEncoding, getFileSystem, getFileSystem, getFileSystemAsUser, getUserGroupInformation, resetHDFSResources从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.pulsar.io.core.Sink
open
-
字段详细资料
-
counter
-
hdfsStream
protected org.apache.hadoop.fs.FSDataOutputStream hdfsStream -
writer
protected org.apache.hadoop.io.SequenceFile.Writer writer
-
-
构造器详细资料
-
HdfsAbstractSequenceFileSink
public HdfsAbstractSequenceFileSink()
-
-
方法详细资料
-
convert
-
close
- 指定者:
close在接口中AutoCloseable- 覆盖:
close在类中HdfsAbstractSink<K,V> - 抛出:
Exception
-
createWriter
- 指定者:
createWriter在类中HdfsAbstractSink<K,V> - 抛出:
IOException
-
write
- 指定者:
write在接口中org.apache.pulsar.io.core.Sink<K>
-
getWriter
- 抛出:
IOException
-
getOptions
protected List<org.apache.hadoop.io.SequenceFile.Writer.Option> getOptions() throws IllegalArgumentException, IOException
-