|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.streaming.io.IdentifierResolver
public class IdentifierResolver
This class is used to resolve a string identifier into the required IO classes. By extending this class and pointing the property stream.io.identifier.resolver.class to this extension, additional IO classes can be added by external code.
Field Summary | |
---|---|
static String |
RAW_BYTES_ID
|
static String |
TEXT_ID
|
static String |
TYPED_BYTES_ID
|
Constructor Summary | |
---|---|
IdentifierResolver()
|
Method Summary | |
---|---|
Class<? extends InputWriter> |
getInputWriterClass()
Returns the resolved InputWriter class. |
Class |
getOutputKeyClass()
Returns the resolved output key class. |
Class<? extends OutputReader> |
getOutputReaderClass()
Returns the resolved OutputReader class. |
Class |
getOutputValueClass()
Returns the resolved output value class. |
void |
resolve(String identifier)
Resolves a given identifier. |
protected void |
setInputWriterClass(Class<? extends InputWriter> inputWriterClass)
Sets the InputWriter class. |
protected void |
setOutputKeyClass(Class outputKeyClass)
Sets the output key class class. |
protected void |
setOutputReaderClass(Class<? extends OutputReader> outputReaderClass)
Sets the OutputReader class. |
protected void |
setOutputValueClass(Class outputValueClass)
Sets the output value class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TEXT_ID
public static final String RAW_BYTES_ID
public static final String TYPED_BYTES_ID
Constructor Detail |
---|
public IdentifierResolver()
Method Detail |
---|
public void resolve(String identifier)
public Class<? extends InputWriter> getInputWriterClass()
InputWriter
class.
public Class<? extends OutputReader> getOutputReaderClass()
OutputReader
class.
public Class getOutputKeyClass()
public Class getOutputValueClass()
protected void setInputWriterClass(Class<? extends InputWriter> inputWriterClass)
InputWriter
class.
protected void setOutputReaderClass(Class<? extends OutputReader> outputReaderClass)
OutputReader
class.
protected void setOutputKeyClass(Class outputKeyClass)
protected void setOutputValueClass(Class outputValueClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |