Class SequenceFileWriter<K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable>
- java.lang.Object
-
- org.apache.flink.formats.sequencefile.SequenceFileWriter<K,V>
-
- Type Parameters:
K- The type of key written.V- The type of value written.
- All Implemented Interfaces:
org.apache.flink.api.common.serialization.BulkWriter<org.apache.flink.api.java.tuple.Tuple2<K,V>>
@PublicEvolving public class SequenceFileWriter<K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> extends Object implements org.apache.flink.api.common.serialization.BulkWriter<org.apache.flink.api.java.tuple.Tuple2<K,V>>
ABulkWriterimplementation that wraps aSequenceFile.Writer.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.api.common.serialization.BulkWriter
org.apache.flink.api.common.serialization.BulkWriter.Factory<T extends Object>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(org.apache.flink.api.java.tuple.Tuple2<K,V> element)voidfinish()voidflush()
-
-
-
Method Detail
-
addElement
public void addElement(org.apache.flink.api.java.tuple.Tuple2<K,V> element) throws IOException
- Specified by:
addElementin interfaceorg.apache.flink.api.common.serialization.BulkWriter<K extends org.apache.hadoop.io.Writable>- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceorg.apache.flink.api.common.serialization.BulkWriter<K extends org.apache.hadoop.io.Writable>- Throws:
IOException
-
finish
public void finish() throws IOException- Specified by:
finishin interfaceorg.apache.flink.api.common.serialization.BulkWriter<K extends org.apache.hadoop.io.Writable>- Throws:
IOException
-
-