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
-
Method Summary
Modifier and TypeMethodDescriptionGets the configuration.Return the data model.Gets the reader schema for the key.getPath()
Gets the input path.Gets the reader schema for the value.Sets the configuration.withDataModel
(GenericData model) Set the data model.withKeySchema
(Schema keySchema) Sets the reader schema for the key.Sets the input path.withValueSchema
(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
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
Gets the reader schema for the value.- Returns:
- The reader schema for the value.
-
withDataModel
Set the data model. -
getDataModel
Return the data model.
-