Class SortedKeyValueFile.Reader.Options

java.lang.Object
org.apache.avro.hadoop.file.SortedKeyValueFile.Reader.Options
Enclosing class:
SortedKeyValueFile.Reader<K,V>

public static class SortedKeyValueFile.Reader.Options extends Object
A class to encapsulate the options of a Reader.
  • Constructor Details

    • Options

      public Options()
  • Method Details

    • withConfiguration

      public SortedKeyValueFile.Reader.Options withConfiguration(Configuration conf)
      Sets the configuration.
      Parameters:
      conf - The configuration.
      Returns:
      This options instance.
    • getConfiguration

      public Configuration getConfiguration()
      Gets the configuration.
      Returns:
      The configuration.
    • withPath

      public SortedKeyValueFile.Reader.Options withPath(Path path)
      Sets the input path.
      Parameters:
      path - The input path.
      Returns:
      This options instance.
    • getPath

      public Path getPath()
      Gets the input path.
      Returns:
      The input path.
    • withKeySchema

      public SortedKeyValueFile.Reader.Options withKeySchema(Schema keySchema)
      Sets the reader schema for the key.
      Parameters:
      keySchema - The reader schema for the key.
      Returns:
      This options instance.
    • getKeySchema

      public Schema getKeySchema()
      Gets the reader schema for the key.
      Returns:
      The reader schema for the key.
    • withValueSchema

      public SortedKeyValueFile.Reader.Options withValueSchema(Schema valueSchema)
      Sets the reader schema for the value.
      Parameters:
      valueSchema - The reader schema for the value.
      Returns:
      This options instance.
    • getValueSchema

      public Schema getValueSchema()
      Gets the reader schema for the value.
      Returns:
      The reader schema for the value.
    • withDataModel

      public SortedKeyValueFile.Reader.Options withDataModel(GenericData model)
      Set the data model.
    • getDataModel

      public GenericData getDataModel()
      Return the data model.