Class GroupWriteSupport
java.lang.Object
org.apache.parquet.hadoop.api.WriteSupport<org.apache.parquet.example.data.Group>
org.gridgain.internal.sql.copy.parquet.GroupWriteSupport
public class GroupWriteSupport
extends org.apache.parquet.hadoop.api.WriteSupport<org.apache.parquet.example.data.Group>
Initiates a write session for writing to a Parquet file.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.parquet.hadoop.api.WriteSupport
org.apache.parquet.hadoop.api.WriteSupport.FinalizedWriteContext, org.apache.parquet.hadoop.api.WriteSupport.WriteContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe configuration key for the Parquet schema. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.parquet.schema.MessageTypegetSchema(org.apache.hadoop.conf.Configuration configuration) Gets the schema to be used for writing.org.apache.parquet.hadoop.api.WriteSupport.WriteContextinit(org.apache.hadoop.conf.Configuration configuration) voidprepareForWrite(org.apache.parquet.io.api.RecordConsumer recordConsumer) static voidsetSchema(org.apache.parquet.schema.MessageType schema, org.apache.hadoop.conf.Configuration configuration) Sets the schema to be used for writing.voidwrite(org.apache.parquet.example.data.Group record) Methods inherited from class org.apache.parquet.hadoop.api.WriteSupport
finalizeWrite, getName, init
-
Field Details
-
PARQUET_DEFAULT_SCHEMA
The configuration key for the Parquet schema.- See Also:
-
-
Method Details
-
setSchema
public static void setSchema(org.apache.parquet.schema.MessageType schema, org.apache.hadoop.conf.Configuration configuration) Sets the schema to be used for writing.- Parameters:
schema- The schema to be used for writing.configuration- The configuration to set the schema in.
-
getSchema
public static org.apache.parquet.schema.MessageType getSchema(org.apache.hadoop.conf.Configuration configuration) Gets the schema to be used for writing.- Parameters:
configuration- The configuration to get the schema from.
-
init
public org.apache.parquet.hadoop.api.WriteSupport.WriteContext init(org.apache.hadoop.conf.Configuration configuration) - Specified by:
initin classorg.apache.parquet.hadoop.api.WriteSupport<org.apache.parquet.example.data.Group>
-
prepareForWrite
public void prepareForWrite(org.apache.parquet.io.api.RecordConsumer recordConsumer) - Specified by:
prepareForWritein classorg.apache.parquet.hadoop.api.WriteSupport<org.apache.parquet.example.data.Group>
-
write
public void write(org.apache.parquet.example.data.Group record) - Specified by:
writein classorg.apache.parquet.hadoop.api.WriteSupport<org.apache.parquet.example.data.Group>
-