|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cascading.scheme.Scheme cascading.tap.TemplateTap.TemplateScheme
public static class TemplateTap.TemplateScheme
Constructor Summary | |
---|---|
TemplateTap.TemplateScheme(Scheme scheme)
|
|
TemplateTap.TemplateScheme(Scheme scheme,
String pathTemplate,
Fields pathFields)
|
Method Summary | |
---|---|
int |
getNumSinkParts()
Method getNumSinkParts returns the numSinkParts of this Scheme object. |
Fields |
getSinkFields()
Method getSinkFields returns the sinkFields of this Scheme object. |
Fields |
getSourceFields()
Method getSourceFields returns the sourceFields of this Scheme object. |
boolean |
isWriteDirect()
Method isWriteDirect returns true if the parent Tap instances TupleEntryCollector should be used to sink values. |
void |
setNumSinkParts(int numSinkParts)
Method setNumSinkParts sets the numSinkParts of this Scheme object. |
void |
setSinkFields(Fields sinkFields)
Method setSinkFields sets the sinkFields of this Scheme object. |
void |
setSourceFields(Fields sourceFields)
Method setSourceFields sets the sourceFields of this Scheme object. |
void |
sink(TupleEntry tupleEntry,
OutputCollector outputCollector)
Method sink writes out the given Tuple instance to the outputCollector. |
void |
sinkInit(Tap tap,
JobConf conf)
Method sinkInit initializes this instance as a sink. |
Tuple |
source(Object key,
Object value)
Method source takes the given Hadoop key and value and returns a new Tuple instance. |
void |
sourceInit(Tap tap,
JobConf conf)
Method sourceInit initializes this instance as a source. |
Methods inherited from class cascading.scheme.Scheme |
---|
equals, getTrace, hashCode, isSink, isSource, isSymmetrical, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TemplateTap.TemplateScheme(Scheme scheme)
public TemplateTap.TemplateScheme(Scheme scheme, String pathTemplate, Fields pathFields)
Method Detail |
---|
public Fields getSinkFields()
Scheme
getSinkFields
in class Scheme
public void setSinkFields(Fields sinkFields)
Scheme
setSinkFields
in class Scheme
sinkFields
- the sinkFields of this Scheme object.public Fields getSourceFields()
Scheme
getSourceFields
in class Scheme
public void setSourceFields(Fields sourceFields)
Scheme
setSourceFields
in class Scheme
sourceFields
- the sourceFields of this Scheme object.public int getNumSinkParts()
Scheme
getNumSinkParts
in class Scheme
public void setNumSinkParts(int numSinkParts)
Scheme
setNumSinkParts
in class Scheme
numSinkParts
- the numSinkParts of this Scheme object.public boolean isWriteDirect()
Scheme
Tap
instances TupleEntryCollector
should be used to sink values.
isWriteDirect
in class Scheme
public void sourceInit(Tap tap, JobConf conf) throws IOException
Scheme
sourceInit
in class Scheme
tap
- of type Tapconf
- of type JobConf
IOException
- on initializatin failurepublic void sinkInit(Tap tap, JobConf conf) throws IOException
Scheme
sinkInit
in class Scheme
tap
- of type Tapconf
- of type JobConf
IOException
- on initialization failurepublic Tuple source(Object key, Object value)
Scheme
Tuple
instance.
source
in class Scheme
key
- of type WritableComparablevalue
- of type Writable
public void sink(TupleEntry tupleEntry, OutputCollector outputCollector) throws IOException
Scheme
Tuple
instance to the outputCollector.
sink
in class Scheme
outputCollector
- of type OutputCollector @throws IOException when
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |