Class GenericOrcWriter

  • All Implemented Interfaces:
    OrcRowWriter<org.apache.iceberg.data.Record>

    public class GenericOrcWriter
    extends java.lang.Object
    implements OrcRowWriter<org.apache.iceberg.data.Record>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static OrcRowWriter<org.apache.iceberg.data.Record> buildWriter​(org.apache.iceberg.Schema expectedSchema, org.apache.orc.TypeDescription fileSchema)  
      java.util.stream.Stream<org.apache.iceberg.FieldMetrics<?>> metrics()
      Returns a stream of FieldMetrics that this OrcRowWriter keeps track of.
      void write​(org.apache.iceberg.data.Record value, org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch output)
      Writes or appends a row to ORC's VectorizedRowBatch.
      java.util.List<OrcValueWriter<?>> writers()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • buildWriter

        public static OrcRowWriter<org.apache.iceberg.data.Record> buildWriter​(org.apache.iceberg.Schema expectedSchema,
                                                                               org.apache.orc.TypeDescription fileSchema)
      • write

        public void write​(org.apache.iceberg.data.Record value,
                          org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch output)
        Description copied from interface: OrcRowWriter
        Writes or appends a row to ORC's VectorizedRowBatch.
        Specified by:
        write in interface OrcRowWriter<org.apache.iceberg.data.Record>
        Parameters:
        value - the row data value to write.
        output - the VectorizedRowBatch to which the output will be written.
      • metrics

        public java.util.stream.Stream<org.apache.iceberg.FieldMetrics<?>> metrics()
        Description copied from interface: OrcRowWriter
        Returns a stream of FieldMetrics that this OrcRowWriter keeps track of.
        Specified by:
        metrics in interface OrcRowWriter<org.apache.iceberg.data.Record>