Class ParquetWriteAdapter<D>

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, FileAppender<D>

    @Deprecated
    public class ParquetWriteAdapter<D>
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      ParquetWriteAdapter​(org.apache.parquet.hadoop.ParquetWriter<D> writer, MetricsConfig metricsConfig)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void add​(D datum)
      Deprecated.
       
      void close()
      Deprecated.
       
      long length()
      Deprecated.
      Returns the length of this file.
      Metrics metrics()
      Deprecated.
      Returns Metrics for this file.
      java.util.List<java.lang.Long> splitOffsets()
      Deprecated.
      Returns a list of recommended split locations, if applicable, null otherwise.
      • Methods inherited from class java.lang.Object

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

      • ParquetWriteAdapter

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

      • add

        public void add​(D datum)
        Deprecated.
        Specified by:
        add 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 java.util.List<java.lang.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 java.io.IOException
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException