|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcascading.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, hashCode, 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 Schemepublic void setSinkFields(Fields sinkFields)
Scheme
setSinkFields in class SchemesinkFields - the sinkFields of this Scheme object.public Fields getSourceFields()
Scheme
getSourceFields in class Schemepublic void setSourceFields(Fields sourceFields)
Scheme
setSourceFields in class SchemesourceFields - the sourceFields of this Scheme object.public int getNumSinkParts()
Scheme
getNumSinkParts in class Schemepublic void setNumSinkParts(int numSinkParts)
Scheme
setNumSinkParts in class SchemenumSinkParts - the numSinkParts of this Scheme object.public boolean isWriteDirect()
SchemeTap 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 Schemetap - of type Tapconf - of type JobConf
IOException - on initializatin failure
public void sinkInit(Tap tap,
JobConf conf)
throws IOException
Scheme
sinkInit in class Schemetap - of type Tapconf - of type JobConf
IOException - on initialization failure
public Tuple source(Object key,
Object value)
SchemeTuple instance.
source in class Schemekey - of type WritableComparablevalue - of type Writable
public void sink(TupleEntry tupleEntry,
OutputCollector outputCollector)
throws IOException
SchemeTuple instance to the outputCollector.
sink in class SchemeoutputCollector - of type OutputCollector @throws IOException when
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||