Package org.apache.iceberg.parquet
Class ParquetWriteAdapter<D>
- java.lang.Object
-
- org.apache.iceberg.parquet.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.useParquetWriterParquet writer that wraps around hadoop'sParquetWriter. It shouldn't be used in production;ParquetWriteris 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 voidadd(D datum)Deprecated.voidclose()Deprecated.longlength()Deprecated.Returns the length of this file.Metricsmetrics()Deprecated.ReturnsMetricsfor 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
-
Methods inherited from interface org.apache.iceberg.io.FileAppender
addAll, addAll
-
-
-
-
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:
addin interfaceFileAppender<D>
-
metrics
public Metrics metrics()
Deprecated.Description copied from interface:FileAppenderReturnsMetricsfor this file. Only valid after the file is closed.- Specified by:
metricsin interfaceFileAppender<D>
-
length
public long length()
Deprecated.Description copied from interface:FileAppenderReturns the length of this file.- Specified by:
lengthin interfaceFileAppender<D>
-
splitOffsets
public java.util.List<java.lang.Long> splitOffsets()
Deprecated.Description copied from interface:FileAppenderReturns 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:
splitOffsetsin interfaceFileAppender<D>
-
close
public void close() throws java.io.IOExceptionDeprecated.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-