Package org.apache.avro.hadoop.file
Class SortedKeyValueFile.Reader.Options
java.lang.Object
org.apache.avro.hadoop.file.SortedKeyValueFile.Reader.Options
- Enclosing class:
SortedKeyValueFile.Reader<K,V>
A class to encapsulate the options of a Reader.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the configuration.org.apache.avro.generic.GenericDataReturn the data model.org.apache.avro.SchemaGets the reader schema for the key.getPath()Gets the input path.org.apache.avro.SchemaGets the reader schema for the value.Sets the configuration.withDataModel(org.apache.avro.generic.GenericData model) Set the data model.withKeySchema(org.apache.avro.Schema keySchema) Sets the reader schema for the key.Sets the input path.withValueSchema(org.apache.avro.Schema valueSchema) Sets the reader schema for the value.
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
withConfiguration
Sets the configuration.- Parameters:
conf- The configuration.- Returns:
- This options instance.
-
getConfiguration
Gets the configuration.- Returns:
- The configuration.
-
withPath
Sets the input path.- Parameters:
path- The input path.- Returns:
- This options instance.
-
getPath
Gets the input path.- Returns:
- The input path.
-
withKeySchema
Sets the reader schema for the key.- Parameters:
keySchema- The reader schema for the key.- Returns:
- This options instance.
-
getKeySchema
public org.apache.avro.Schema getKeySchema()Gets the reader schema for the key.- Returns:
- The reader schema for the key.
-
withValueSchema
Sets the reader schema for the value.- Parameters:
valueSchema- The reader schema for the value.- Returns:
- This options instance.
-
getValueSchema
public org.apache.avro.Schema getValueSchema()Gets the reader schema for the value.- Returns:
- The reader schema for the value.
-
withDataModel
Set the data model. -
getDataModel
public org.apache.avro.generic.GenericData getDataModel()Return the data model.
-