Class ParquetWriteAdapter<D>

java.lang.Object
org.apache.iceberg.parquet.ParquetWriteAdapter<D>
All Implemented Interfaces:
Closeable, AutoCloseable, FileAppender<D>

@Deprecated public class ParquetWriteAdapter<D> extends Object implements FileAppender<D>
Deprecated.
use ParquetWriter
Parquet writer that wraps around hadoop's ParquetWriter. It shouldn't be used in production; ParquetWriter is a better alternative.
  • Constructor Details

    • ParquetWriteAdapter

      public ParquetWriteAdapter(org.apache.parquet.hadoop.ParquetWriter<D> writer, MetricsConfig metricsConfig)
      Deprecated.
  • Method Details

    • add

      public void add(D datum)
      Deprecated.
      Specified by:
      add in interface FileAppender<D>
    • metrics

      public Metrics metrics()
      Deprecated.
      Description copied from interface: FileAppender
      Returns Metrics for this file. Only valid after the file is closed.
      Specified by:
      metrics in interface FileAppender<D>
    • length

      public long length()
      Deprecated.
      Description copied from interface: FileAppender
      Returns the length of this file.
      Specified by:
      length in interface FileAppender<D>
    • splitOffsets

      public List<Long> splitOffsets()
      Deprecated.
      Description copied from interface: FileAppender
      Returns a list of recommended split locations, if applicable, null otherwise.

      When available, this information is used for planning scan tasks whose boundaries are determined by these offsets. The returned list must be sorted in ascending order. Only valid after the file is closed.

      Specified by:
      splitOffsets in interface FileAppender<D>
    • close

      public void close() throws IOException
      Deprecated.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException