org.apache.avro.hadoop.file
Class SortedKeyValueFile.Reader.Options

java.lang.Object
  extended by 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 Summary
SortedKeyValueFile.Reader.Options()
           
 
Method Summary
 org.apache.hadoop.conf.Configuration getConfiguration()
          Gets the configuration.
 org.apache.avro.Schema getKeySchema()
          Gets the reader schema for the key.
 org.apache.hadoop.fs.Path getPath()
          Gets the input path.
 org.apache.avro.Schema getValueSchema()
          Gets the reader schema for the value.
 SortedKeyValueFile.Reader.Options withConfiguration(org.apache.hadoop.conf.Configuration conf)
          Sets the configuration.
 SortedKeyValueFile.Reader.Options withKeySchema(org.apache.avro.Schema keySchema)
          Sets the reader schema for the key.
 SortedKeyValueFile.Reader.Options withPath(org.apache.hadoop.fs.Path path)
          Sets the input path.
 SortedKeyValueFile.Reader.Options withValueSchema(org.apache.avro.Schema valueSchema)
          Sets the reader schema for the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortedKeyValueFile.Reader.Options

public SortedKeyValueFile.Reader.Options()
Method Detail

withConfiguration

public SortedKeyValueFile.Reader.Options withConfiguration(org.apache.hadoop.conf.Configuration conf)
Sets the configuration.

Parameters:
conf - The configuration.
Returns:
This options instance.

getConfiguration

public org.apache.hadoop.conf.Configuration getConfiguration()
Gets the configuration.

Returns:
The configuration.

withPath

public SortedKeyValueFile.Reader.Options withPath(org.apache.hadoop.fs.Path path)
Sets the input path.

Parameters:
path - The input path.
Returns:
This options instance.

getPath

public org.apache.hadoop.fs.Path getPath()
Gets the input path.

Returns:
The input path.

withKeySchema

public SortedKeyValueFile.Reader.Options withKeySchema(org.apache.avro.Schema keySchema)
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

public SortedKeyValueFile.Reader.Options withValueSchema(org.apache.avro.Schema valueSchema)
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.


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.