ParquetWriter
@Deprecated public class ParquetWriteAdapter<D> extends java.lang.Object implements FileAppender<D>
ParquetWriter
. It shouldn't be used in
production; ParquetWriter
is a better alternative.Constructor and Description |
---|
ParquetWriteAdapter(org.apache.parquet.hadoop.ParquetWriter<D> writer,
MetricsConfig metricsConfig)
Deprecated.
|
Modifier and Type | Method and 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAll, addAll
public ParquetWriteAdapter(org.apache.parquet.hadoop.ParquetWriter<D> writer, MetricsConfig metricsConfig)
public void add(D datum)
add
in interface FileAppender<D>
public Metrics metrics()
FileAppender
Metrics
for this file. Only valid after the file is closed.metrics
in interface FileAppender<D>
public long length()
FileAppender
length
in interface FileAppender<D>
public java.util.List<java.lang.Long> splitOffsets()
FileAppender
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.
splitOffsets
in interface FileAppender<D>
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException