public class WriterImpl extends WriterImpl implements Writer
BASE_TIMESTAMP_STRING, MILLIS_PER_DAY, MILLIS_PER_SECOND, NANOS_PER_MILLI
Modifier and Type | Method and Description |
---|---|
void |
addRow(Object row)
Add a row to the end of the ORC file.
|
void |
addRowBatch(VectorizedRowBatch batch)
Add a row batch to the ORC file.
|
void |
close()
Flush all of the buffers and close the file.
|
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.
|
addUserMetadata, appendStripe, appendUserMetadata, checkMemory, createCodec, getEstimatedBufferSize, getNumberOfRows, getRawDataSize, getSchema, getStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addUserMetadata, appendStripe, appendUserMetadata, getNumberOfRows, getRawDataSize, getSchema
public void addRow(Object row) throws IOException
Writer
row
- the row to addIOException
public long writeIntermediateFooter() throws IOException
Writer
writeIntermediateFooter
in interface Writer
writeIntermediateFooter
in class WriterImpl
IOException
public void addRowBatch(VectorizedRowBatch batch) throws IOException
Writer
addRowBatch
in interface Writer
addRowBatch
in class WriterImpl
batch
- the rows to addIOException
public void close() throws IOException
Writer
close
in interface Writer
close
in class WriterImpl
IOException
Copyright © 2016 The Apache Software Foundation. All rights reserved.