org.apache.hadoop.zebra.io
Interface TableInserter

All Superinterfaces:
Closeable

public interface TableInserter
extends Closeable

Inserter interface allows application to to insert a number of rows into table.


Method Summary
 Schema getSchema()
          Get the schema of the underlying table we are writing to.
 void insert(org.apache.hadoop.io.BytesWritable key, Tuple row)
          Insert a new row into the table.
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

insert

void insert(org.apache.hadoop.io.BytesWritable key,
            Tuple row)
            throws IOException
Insert a new row into the table.

Parameters:
key - The row key.
row - The row.
Throws:
IOException

getSchema

Schema getSchema()
Get the schema of the underlying table we are writing to.

Returns:
The schema of the underlying table.


Copyright © 2012 The Apache Software Foundation