|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |
long |
getNumberOfRows()
Return the number of rows in file. |
long |
getRawDataSize()
Return the deserialized data size. |
long |
writeIntermediateFooter()
Write an intermediate footer on the file such that if the file is truncated to the returned offset, it would be a valid ORC file. |
Method Detail |
---|
void addUserMetadata(String key, ByteBuffer value)
key
- a key to label the data with.value
- the contents of the metadata.void addRow(Object row) throws IOException
row
- the row to add
IOException
void close() throws IOException
IOException
long getRawDataSize()
long getNumberOfRows()
long writeIntermediateFooter() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |