T - Type of object to transfer.public class ObjectTransfer<T> extends Object implements Supplier<T>, Consumer<T>
| Constructor and Description |
|---|
ObjectTransfer()
Constructor
|
ObjectTransfer(T value)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(T value)
Applies this function to
input |
<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
castToConsumer()
To be called when needing to pass it as a Consumer - making it
obvious that K, V and E on consumer side can be any types,
and to make code work without compile errors/warnings.
|
<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
castToSupplier()
To be called when needing to pass it as a Supplier - making it
obvious that K, V and E on supplier side can be any types,
and to make code work without compile errors/warnings.
|
T |
get()
Retrieves an instance of the appropriate type.
|
String |
toString() |
public ObjectTransfer(T value)
value - initial valuepublic ObjectTransfer()
public T get()
Supplierpublic void apply(T value)
Consumerinputpublic <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> SupplierFromVertex<I,V,E,T> castToSupplier()
I - Vertex id typeV - Vertex value typeE - Edge value typepublic <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> ConsumerWithVertex<I,V,E,T> castToConsumer()
I - Vertex id typeV - Vertex value typeE - Edge value typeCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.