Package org.apache.orc.impl.writer
Class VarcharTreeWriter
java.lang.Object
org.apache.orc.impl.writer.TreeWriterBase
org.apache.orc.impl.writer.StringBaseTreeWriter
org.apache.orc.impl.writer.VarcharTreeWriter
- All Implemented Interfaces:
TreeWriter
Under the covers, varchar is written to ORC the same way as string.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.orc.impl.writer.TreeWriter
TreeWriter.Factory
-
Field Summary
Fields inherited from class org.apache.orc.impl.writer.StringBaseTreeWriter
dictionary, directStreamOutput, lengthOutput, rows, useDictionaryEncoding
Fields inherited from class org.apache.orc.impl.writer.TreeWriterBase
bloomFilter, bloomFilterEntry, bloomFilterUtf8, context, createBloomFilter, encryption, fileStatistics, id, indexStatistics, isPresent, rowIndexPosition, schema, stripeColStatistics
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeBatch
(org.apache.hadoop.hive.ql.exec.vector.ColumnVector vector, int offset, int length) Write the values from the given vector from offset for length elements.Methods inherited from class org.apache.orc.impl.writer.StringBaseTreeWriter
createRowIndexEntry, estimateMemory, flushStreams, getRawDataSize, prepareStripe, writeStripe
Methods inherited from class org.apache.orc.impl.writer.TreeWriterBase
addStripeStatistics, getCurrentStatistics, getRowIndex, getRowIndexEntry, getStripeStatistics, writeFileStatistics, writeRootBatch
-
Method Details
-
writeBatch
public void writeBatch(org.apache.hadoop.hive.ql.exec.vector.ColumnVector vector, int offset, int length) throws IOException Description copied from class:TreeWriterBase
Write the values from the given vector from offset for length elements.- Specified by:
writeBatch
in interfaceTreeWriter
- Overrides:
writeBatch
in classTreeWriterBase
- Parameters:
vector
- the vector to write fromoffset
- the first value from the vector to writelength
- the number of values from the vector to write- Throws:
IOException
-