Package org.apache.parquet.hadoop.api
Class ReadSupport.ReadContext
- java.lang.Object
-
- org.apache.parquet.hadoop.api.ReadSupport.ReadContext
-
- Enclosing class:
- ReadSupport<T>
public static final class ReadSupport.ReadContext extends Object
information to read the file
-
-
Constructor Summary
Constructors Constructor Description ReadContext(MessageType requestedSchema)
ReadContext(MessageType requestedSchema, Map<String,String> readSupportMetadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getReadSupportMetadata()
MessageType
getRequestedSchema()
-
-
-
Constructor Detail
-
ReadContext
public ReadContext(MessageType requestedSchema)
- Parameters:
requestedSchema
- the schema requested by the user. Can not be null.
-
ReadContext
public ReadContext(MessageType requestedSchema, Map<String,String> readSupportMetadata)
- Parameters:
requestedSchema
- the schema requested by the user. Can not be null.readSupportMetadata
- metadata specific to the ReadSupport implementation. Will be available in the prepareForRead phase.
-
-
Method Detail
-
getRequestedSchema
public MessageType getRequestedSchema()
- Returns:
- the schema of the file
-
-