org.apache.hadoop.hive.ql.io.orc
Interface Writer


public interface Writer

The interface for writing ORC files.


Method Summary
 void addRow(Object row)
          Add a row to the ORC file.
 void addUserMetadata(String key, ByteBuffer value)
          Add arbitrary meta-data to the ORC file.
 void close()
          Flush all of the buffers and close the file.
 

Method Detail

addUserMetadata

void addUserMetadata(String key,
                     ByteBuffer value)
Add arbitrary meta-data to the ORC file. This may be called at any point until the Writer is closed. If the same key is passed a second time, the second value will replace the first.

Parameters:
key - a key to label the data with.
value - the contents of the metadata.

addRow

void addRow(Object row)
            throws IOException
Add a row to the ORC file.

Parameters:
row - the row to add
Throws:
IOException

close

void close()
           throws IOException
Flush all of the buffers and close the file. No methods on this writer should be called afterwards.

Throws:
IOException


Copyright © 2012 The Apache Software Foundation