|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.crunch.io.impl.SourceTargetImpl<T>
public class SourceTargetImpl<T>
| Constructor Summary | |
|---|---|
SourceTargetImpl(Source<T> source,
Target target)
|
|
| Method Summary | ||
|---|---|---|
boolean |
accept(OutputHandler handler,
PType<?> ptype)
|
|
|
asSourceTarget(PType<S> ptype)
|
|
void |
configureSource(org.apache.hadoop.mapreduce.Job job,
int inputId)
Configure the given job to use this source as an input. |
|
boolean |
equals(Object other)
|
|
long |
getSize(org.apache.hadoop.conf.Configuration configuration)
Returns the number of bytes in this Source. |
|
PType<T> |
getType()
Returns the PType for this source. |
|
int |
hashCode()
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SourceTargetImpl(Source<T> source,
Target target)
| Method Detail |
|---|
public PType<T> getType()
SourcePType for this source.
getType in interface Source<T>
public void configureSource(org.apache.hadoop.mapreduce.Job job,
int inputId)
throws IOException
Source
configureSource in interface Source<T>job - The job to configureinputId - For a multi-input job, an identifier for this input to the job
IOExceptionpublic long getSize(org.apache.hadoop.conf.Configuration configuration)
SourceSource.
getSize in interface Source<T>
public boolean accept(OutputHandler handler,
PType<?> ptype)
accept in interface Targetpublic <S> SourceTarget<S> asSourceTarget(PType<S> ptype)
asSourceTarget in interface Targetpublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||