public class DataModelWriteSupport extends org.apache.parquet.hadoop.api.WriteSupport<Object>
RecordConsumer
.Constructor and Description |
---|
DataModelWriteSupport(DataModelDescriptor descriptor)
Creates a new instance with empty extra-metadata.
|
DataModelWriteSupport(DataModelDescriptor descriptor,
Map<String,String> metadata)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
org.apache.parquet.hadoop.api.WriteSupport.WriteContext |
init(org.apache.hadoop.conf.Configuration configuration) |
void |
prepareForWrite(org.apache.parquet.io.api.RecordConsumer consumer) |
void |
write(Object value) |
public DataModelWriteSupport(DataModelDescriptor descriptor)
descriptor
- the target data model descriptorpublic DataModelWriteSupport(DataModelDescriptor descriptor, Map<String,String> metadata)
descriptor
- the target data model descriptormetadata
- the extra metadatapublic org.apache.parquet.hadoop.api.WriteSupport.WriteContext init(org.apache.hadoop.conf.Configuration configuration)
init
in class org.apache.parquet.hadoop.api.WriteSupport<Object>
public void prepareForWrite(org.apache.parquet.io.api.RecordConsumer consumer)
prepareForWrite
in class org.apache.parquet.hadoop.api.WriteSupport<Object>
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.