public static class RCFile.RCFileAppender extends FileAppender
Modifier and Type | Field and Description |
---|---|
static String |
COLUMNS_BUFFER_SIZE_CONF_STR |
conf, enabledStats, inited, meta, path, schema
Constructor and Description |
---|
RCFile.RCFileAppender(org.apache.hadoop.conf.Configuration conf,
Schema schema,
TableMeta meta,
org.apache.hadoop.fs.Path path) |
Modifier and Type | Method and Description |
---|---|
void |
addTuple(Tuple t) |
void |
append(Tuple tuple)
Append a row of values.
|
void |
close() |
void |
flush() |
int |
getKeyBufferSize()
get number of bytes to store the keyBuffer.
|
int |
getKeyPartSize()
get number of bytes to store the key part.
|
long |
getLength() |
long |
getOffset() |
TableStats |
getStats() |
void |
init() |
void |
sync()
create a sync point.
|
enableStats
public static final String COLUMNS_BUFFER_SIZE_CONF_STR
public RCFile.RCFileAppender(org.apache.hadoop.conf.Configuration conf, Schema schema, TableMeta meta, org.apache.hadoop.fs.Path path) throws IOException
IOException
public long getLength() throws IOException
IOException
public void init() throws IOException
init
in interface Appender
init
in class FileAppender
IOException
public void sync() throws IOException
IOException
public long getOffset() throws IOException
getOffset
in class FileAppender
IOException
public void flush() throws IOException
IOException
public void addTuple(Tuple t) throws IOException
IOException
public void append(Tuple tuple) throws IOException
Tuple
. If its size()
is less than the
column number in the file, zero bytes are appended for the empty columns.
If its size() is greater then the column number in the file, the exceeded
columns' bytes are ignored.tuple
- a Tuple with the list of serialized columnsIOException
public int getKeyBufferSize() throws IOException
IOException
public int getKeyPartSize() throws IOException
IOException
public TableStats getStats()
public void close() throws IOException
IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.