com.hazelcast.mapreduce.impl.operation
Class GetResultOperationFactory

java.lang.Object
  extended by com.hazelcast.mapreduce.impl.operation.GetResultOperationFactory
All Implemented Interfaces:
DataSerializable, OperationFactory

public class GetResultOperationFactory
extends Object
implements OperationFactory

This class is used to create GetResultOperation instances.
In difference to other implementations of OperationFactory this class is never ever serialized and the DataSerializable methods readData(com.hazelcast.nio.ObjectDataInput) and writeData(com.hazelcast.nio.ObjectDataOutput) throw UnsupportedOperationExceptions.


Constructor Summary
GetResultOperationFactory(String name, String jobId)
           
 
Method Summary
 Operation createOperation()
          Creates the operation.
 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

GetResultOperationFactory

public GetResultOperationFactory(String name,
                                 String jobId)
Method Detail

createOperation

public Operation createOperation()
Description copied from interface: OperationFactory
Creates the operation.

Specified by:
createOperation in interface OperationFactory
Returns:
the created operation.

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.