public class SparkOrcWriter extends java.lang.Object implements OrcRowWriter<org.apache.spark.sql.catalyst.InternalRow>
Constructor and Description |
---|
SparkOrcWriter(Schema iSchema,
org.apache.orc.TypeDescription orcSchema) |
Modifier and Type | Method and Description |
---|---|
java.util.stream.Stream<FieldMetrics<?>> |
metrics()
Returns a stream of
FieldMetrics that this OrcRowWriter keeps track of. |
void |
write(org.apache.spark.sql.catalyst.InternalRow value,
org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch output)
Writes or appends a row to ORC's VectorizedRowBatch.
|
java.util.List<OrcValueWriter<?>> |
writers() |
public SparkOrcWriter(Schema iSchema, org.apache.orc.TypeDescription orcSchema)
public void write(org.apache.spark.sql.catalyst.InternalRow value, org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch output)
OrcRowWriter
write
in interface OrcRowWriter<org.apache.spark.sql.catalyst.InternalRow>
value
- the row data value to write.output
- the VectorizedRowBatch to which the output will be written.public java.util.List<OrcValueWriter<?>> writers()
writers
in interface OrcRowWriter<org.apache.spark.sql.catalyst.InternalRow>
public java.util.stream.Stream<FieldMetrics<?>> metrics()
OrcRowWriter
FieldMetrics
that this OrcRowWriter keeps track of.metrics
in interface OrcRowWriter<org.apache.spark.sql.catalyst.InternalRow>