public class RefineCandidateOperation extends AbstractOperation
RankingSingleQueryOperation
using
the candidate set stored in the provided GetCandidateSetOperation
.AbstractOperation.OperationConstructor, AbstractOperation.OperationName
suppData, uuidOperationComparator
Constructor and Description |
---|
RefineCandidateOperation(GetCandidateSetOperation candidateOperation,
RankingSingleQueryOperation operationToRefine)
Creates the operation given a
RankingSingleQueryOperation to be refined and the candidate set
within a GetCandidateSetOperation . |
Modifier and Type | Method and Description |
---|---|
void |
endOperation()
End operation successfully.
|
java.lang.Object |
getArgument(int index)
Returns argument that was passed while constructing instance.
|
int |
getArgumentCount()
Returns number of arguments that were passed while constructing this instance.
|
GetCandidateSetOperation |
getCandidateOperation()
Get the candidate operation.
|
RankingSingleQueryOperation |
getRankingOperation()
Returns the ranking operation to be refined.
|
void |
updateFrom(AbstractOperation operation)
Update the error code of this operation from another operation.
|
boolean |
wasSuccessful()
Returns true if this operation has finished successfuly.
|
appendArguments, appendErrorCode, clearSurplusData, clone, containsParameter, createOperation, endOperation, equals, getAnnotatedConstructor, getAnnotatedConstructor, getArgumentString, getConstructorArgumentDescriptions, getConstructorArgumentDescriptions, getConstructorArguments, getConstructorArguments, getConstructorDescription, getErrorCode, getName, getName, getOperationID, getParameter, getParameter, getParameter, getParameterCount, getParameterMap, getParameterNames, getRequiredParameter, getRequiredParameter, hashCode, isErrorCode, isFinished, removeParameter, setParameter, toString
public RefineCandidateOperation(GetCandidateSetOperation candidateOperation, RankingSingleQueryOperation operationToRefine)
RankingSingleQueryOperation
to be refined and the candidate set
within a GetCandidateSetOperation
.candidateOperation
- encapsulation of the candidate setoperationToRefine
- ranking operation to be refinedpublic GetCandidateSetOperation getCandidateOperation()
public RankingSingleQueryOperation getRankingOperation()
public java.lang.Object getArgument(int index) throws java.lang.IndexOutOfBoundsException
AbstractOperation
getArgument
in class AbstractOperation
index
- zero-based index of an argument passed to constructorjava.lang.IndexOutOfBoundsException
- if index parameter is out of rangepublic int getArgumentCount()
AbstractOperation
getArgumentCount
in class AbstractOperation
public void updateFrom(AbstractOperation operation) throws java.lang.ClassCastException
AbstractOperation
updateFrom
in class AbstractOperation
operation
- the source operation from which to get the updatejava.lang.ClassCastException
- if the specified operation is incompatible with this operationpublic boolean wasSuccessful()
AbstractOperation
wasSuccessful
in class AbstractOperation
public void endOperation()
AbstractOperation
endOperation
in class AbstractOperation