List of usage examples for org.apache.hadoop.io SequenceFile createWriter
public static Writer createWriter(Configuration conf, Writer.Option... opts) throws IOException
From source file:org.apache.pulsar.io.hdfs.sink.seq.HdfsAbstractSequenceFileSink.java
License:Apache License
protected Writer getWriter() throws IOException { counter = new AtomicLong(0); List<Option> options = getOptions(); return SequenceFile.createWriter(getConfiguration(), options.toArray(new Option[options.size()])); }
From source file:org.apache.pulsar.io.hdfs.sink.seq.HdfsSequentialTextSink.java
License:Apache License
@Override public Writer getWriter() throws IOException { counter = new AtomicLong(0); return SequenceFile.createWriter(getConfiguration(), getOptions().toArray(new Option[getOptions().size()])); }