@InterfaceAudience.Private public class FileBasedKVWriter extends KeyValuesWriter
| Modifier and Type | Field and Description |
|---|---|
static int |
INDEX_RECORD_LENGTH |
| Constructor and Description |
|---|
FileBasedKVWriter(org.apache.tez.runtime.api.OutputContext outputContext,
org.apache.hadoop.conf.Configuration conf) |
public static final int INDEX_RECORD_LENGTH
public FileBasedKVWriter(org.apache.tez.runtime.api.OutputContext outputContext,
org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic boolean close()
throws IOException
IOExceptionpublic void write(Object key, Object value) throws IOException
KeyValueWriterwrite in class KeyValueWriterkey - the key to writevalue - the value to writeIOException - if an error occurspublic void write(Object key, Iterable<Object> values) throws IOException
KeyValuesWriterwrite in class KeyValuesWriterkey - the key to writevalues - values to writeIOExceptionpublic long getRawLength()
public long getCompressedLength()
public byte[] getData()
throws IOException
IOExceptionCopyright © 2014 Apache Software Foundation. All rights reserved.