Package org.apache.orc.mapred
Class OrcMapredRecordWriter<V extends Writable>
java.lang.Object
org.apache.orc.mapred.OrcMapredRecordWriter<V>
- All Implemented Interfaces:
RecordWriter<NullWritable,
V>
public class OrcMapredRecordWriter<V extends Writable>
extends Object
implements RecordWriter<NullWritable,V>
-
Constructor Summary
ConstructorDescriptionOrcMapredRecordWriter
(Writer writer) OrcMapredRecordWriter
(Writer writer, int rowBatchSize) OrcMapredRecordWriter
(Writer writer, int rowBatchSize, int maxChildLength) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addVariableLengthColumns
(List<org.apache.hadoop.hive.ql.exec.vector.MultiValuedColumnVector> result, org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch) Find variable length columns and add them to the list.void
static int
getMaxChildLength
(List<org.apache.hadoop.hive.ql.exec.vector.MultiValuedColumnVector> columns) Get the longest variable length vector in a column vectorstatic void
setColumn
(TypeDescription schema, org.apache.hadoop.hive.ql.exec.vector.ColumnVector vector, int row, Writable value) void
write
(NullWritable nullWritable, V v)
-
Constructor Details
-
OrcMapredRecordWriter
-
OrcMapredRecordWriter
-
OrcMapredRecordWriter
-
-
Method Details
-
addVariableLengthColumns
public static void addVariableLengthColumns(List<org.apache.hadoop.hive.ql.exec.vector.MultiValuedColumnVector> result, org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch) Find variable length columns and add them to the list.- Parameters:
result
- the list to be appended tobatch
- the batch to scan
-
setColumn
public static void setColumn(TypeDescription schema, org.apache.hadoop.hive.ql.exec.vector.ColumnVector vector, int row, Writable value) -
getMaxChildLength
public static int getMaxChildLength(List<org.apache.hadoop.hive.ql.exec.vector.MultiValuedColumnVector> columns) Get the longest variable length vector in a column vector- Returns:
- the length of the longest sub-column
-
write
- Specified by:
write
in interfaceRecordWriter<NullWritable,
V extends Writable> - Throws:
IOException
-
close
- Specified by:
close
in interfaceRecordWriter<NullWritable,
V extends Writable> - Throws:
IOException
-