public abstract static class ParquetValueWriters.StructWriter<S> extends java.lang.Object implements ParquetValueWriter<S>
Modifier | Constructor and Description |
---|---|
protected |
StructWriter(java.util.List<ParquetValueWriter<?>> writers) |
Modifier and Type | Method and Description |
---|---|
java.util.List<TripleWriter<?>> |
columns() |
protected abstract java.lang.Object |
get(S struct,
int index) |
java.util.stream.Stream<FieldMetrics> |
metrics()
Returns a stream of
FieldMetrics that this ParquetValueWriter keeps track of. |
void |
setColumnStore(org.apache.parquet.column.ColumnWriteStore columnStore) |
void |
write(int repetitionLevel,
S value) |
protected StructWriter(java.util.List<ParquetValueWriter<?>> writers)
public void write(int repetitionLevel, S value)
write
in interface ParquetValueWriter<S>
public java.util.List<TripleWriter<?>> columns()
columns
in interface ParquetValueWriter<S>
public void setColumnStore(org.apache.parquet.column.ColumnWriteStore columnStore)
setColumnStore
in interface ParquetValueWriter<S>
protected abstract java.lang.Object get(S struct, int index)
public java.util.stream.Stream<FieldMetrics> metrics()
ParquetValueWriter
FieldMetrics
that this ParquetValueWriter keeps track of.
Since Parquet keeps track of most metrics in its footer, for now ParquetValueWriter only keeps track of NaN counter, and only return non-empty stream if the writer writes double or float values either by itself or transitively.
metrics
in interface ParquetValueWriter<S>