Class ParquetValueWriters.RepeatedKeyValueWriter<M,K,V>

java.lang.Object
org.apache.iceberg.parquet.ParquetValueWriters.RepeatedKeyValueWriter<M,K,V>
All Implemented Interfaces:
ParquetValueWriter<M>
Enclosing class:
ParquetValueWriters

public abstract static class ParquetValueWriters.RepeatedKeyValueWriter<M,K,V> extends Object implements ParquetValueWriter<M>
  • Constructor Details

  • Method Details

    • write

      public void write(int parentRepetition, M value)
      Specified by:
      write in interface ParquetValueWriter<M>
    • columns

      public List<TripleWriter<?>> columns()
      Specified by:
      columns in interface ParquetValueWriter<M>
    • setColumnStore

      public void setColumnStore(org.apache.parquet.column.ColumnWriteStore columnStore)
      Specified by:
      setColumnStore in interface ParquetValueWriter<M>
    • pairs

      protected abstract Iterator<Map.Entry<K,V>> pairs(M value)
      Returns an iterator over the key-value pairs of a value.

      The iterator is fully consumed before write returns and is never retained, so implementations may return a reused iterator instance. The entries it produces are passed to the key and value writers before the next entry is requested, so implementations may also return a reused entry instance.

      Parameters:
      value - a value to write
      Returns:
      an iterator over the value's key-value pairs
    • metrics

      public Stream<FieldMetrics<?>> metrics()
      Description copied from interface: ParquetValueWriter
      Returns a stream of FieldMetrics that this ParquetValueWriter keeps track of.
      Specified by:
      metrics in interface ParquetValueWriter<M>