| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.mapreduce.aggregation.impl.AvgTuple<F,S>
F - first value typeS - second value typepublic class AvgTuple<F,S>
Internal tuple type for average calculations, used to transmit data between Combiner and Reducer implementations.
| Constructor Summary | |
|---|---|
| AvgTuple(F first,
         S second) | |
| Method Summary | |
|---|---|
|  int | getFactoryId()Returns DataSerializableFactory factory id for this class. | 
|  F | getFirst() | 
|  int | getId()Returns type identifier for this class. | 
|  S | getSecond() | 
|  void | readData(ObjectDataInput in)Reads fields from the input stream | 
|  void | writeData(ObjectDataOutput out)Writes object fields to output stream | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AvgTuple(F first,
                S second)
| Method Detail | 
|---|
public F getFirst()
public S getSecond()
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 | |||||||||