|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crunch.materialize.pobject.PObjectImpl<S,Collection<S>> org.apache.crunch.materialize.pobject.CollectionPObject<S>
S
- The value type for elements contained in the Collection
value encapsulated
by this PObject
.public class CollectionPObject<S>
A concrete implementation of PObjectImpl
whose
value is a Java Collection
containing the elements of the underlying PCollection
for this PObject
.
Constructor Summary | |
---|---|
CollectionPObject(PCollection<S> collect)
Constructs a new instance of this PObject implementation. |
Method Summary | |
---|---|
Collection<S> |
process(Iterable<S> input)
Transforms the provided Iterable, obtained from the backing PCollection ,
into the value encapsulated by this PObject . |
Methods inherited from class org.apache.crunch.materialize.pobject.PObjectImpl |
---|
getValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CollectionPObject(PCollection<S> collect)
PObject
implementation.
collect
- The backing PCollection
for this PObject
.Method Detail |
---|
public Collection<S> process(Iterable<S> input)
PCollection
,
into the value encapsulated by this PObject
.
process
in class PObjectImpl<S,Collection<S>>
input
- An Iterable whose elements correspond to those of the backing PCollection
.
PObject
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |