|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.mapreduce.aggregation.Supplier<KeyIn,ValueIn,ValueOut>
com.hazelcast.mapreduce.aggregation.impl.KeyPredicateSupplier<KeyIn,ValueIn,ValueOut>
KeyIn - the input key typeValueIn - the input value typeValueOut - the output value typepublic class KeyPredicateSupplier<KeyIn,ValueIn,ValueOut>
The default supplier for KeyPredicates, used
to filter and optionally transform data (using the given
Supplier).
| Constructor Summary | |
|---|---|
KeyPredicateSupplier(KeyPredicate<KeyIn> keyPredicate)
|
|
KeyPredicateSupplier(KeyPredicate<KeyIn> keyPredicate,
Supplier<KeyIn,ValueIn,ValueOut> chainedSupplier)
|
|
| Method Summary | |
|---|---|
ValueOut |
apply(Map.Entry<KeyIn,ValueIn> entry)
The apply method is used to apply the actual filtering or extraction / transformation to the input entry. If the input value should be ignored by the aggregation, the Supplier has to return |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class. |
int |
getId()
Returns type identifier for this class. |
void |
readData(ObjectDataInput in)
Reads fields from the input stream |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream |
| Methods inherited from class com.hazelcast.mapreduce.aggregation.Supplier |
|---|
all, all, fromKeyPredicate, fromKeyPredicate, fromPredicate, fromPredicate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyPredicateSupplier(KeyPredicate<KeyIn> keyPredicate)
public KeyPredicateSupplier(KeyPredicate<KeyIn> keyPredicate,
Supplier<KeyIn,ValueIn,ValueOut> chainedSupplier)
| Method Detail |
|---|
public ValueOut apply(Map.Entry<KeyIn,ValueIn> entry)
Suppliernullas the supplied value, therefor
nullis not a legal value itself!
apply in class Supplier<KeyIn,ValueIn,ValueOut>entry - the entry key-value pair to supply to the aggregation
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializable
getId in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out)
throws IOException
DataSerializable
writeData in interface DataSerializableout - output
IOException
public void readData(ObjectDataInput in)
throws IOException
DataSerializable
readData in interface DataSerializablein - input
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||