Package com.tangosol.util
Class SimpleQueryRecord.PartialResult
java.lang.Object
com.tangosol.util.SimpleQueryRecord.PartialResult
- All Implemented Interfaces:
ExternalizableLite
,PortableObject
,QueryRecord.PartialResult
,Serializable
- Enclosing class:
SimpleQueryRecord
public static class SimpleQueryRecord.PartialResult
extends Object
implements QueryRecord.PartialResult, ExternalizableLite, PortableObject
Simple QueryRecord.PartialResult implementation.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Simple abstract RecordableStep implementation.class
Simple QueryRecord.PartialResult.ExplainStep implementation.static class
Simple QueryRecord.PartialResult.IndexLookupRecord implementation.static class
Simple QueryRecord.PartialResult.Step implementation.class
Simple QueryRecord.PartialResult.TraceStep implementation.Nested classes/interfaces inherited from interface com.tangosol.util.QueryRecord.PartialResult
QueryRecord.PartialResult.RecordableStep
-
Field Summary
Modifier and TypeFieldDescriptionprotected List
<SimpleQueryRecord.PartialResult.Step> The map of steps. -
Constructor Summary
ConstructorDescriptionDefault constructor (necessary for the ExternalizableLite interface).PartialResult
(PartitionSet partMask) Construct a PartialResult.PartialResult
(QueryContext ctx, PartitionSet partMask) Construct a PartialResult.Copy constructor for a Result. -
Method Summary
Modifier and TypeMethodDescriptionGet the set of partitions associated with this partial result.List
<? extends QueryRecord.PartialResult.Step> getSteps()
Get the list of steps for this query record partial result in the order that they occurred.instantiateExplainStep
(Filter filter) Instantiate a new explain step for the given filter and add it to this result's list of steps.instantiateTraceStep
(Filter filter) Instantiate a new trace step for the given filter and add it to this result's list of steps.protected boolean
isMatching
(QueryRecord.PartialResult result) Determine whether or not the given result is capable of being placed in one-to-one correspondence with this result.protected void
merge
(QueryRecord.PartialResult result) Merge the given result with this one.void
Restore the contents of a user type instance by reading its state using the specified PofReader object.void
Restore the contents of this object by loading the object's state from the passed DataInput object.void
writeExternal
(PofWriter out) Save the contents of a POF user type instance by writing its state using the specified PofWriter object.void
writeExternal
(DataOutput out) Save the contents of this object by storing the object's state into the passed DataOutput object.
-
Field Details
-
m_listSteps
The map of steps.
-
-
Constructor Details
-
PartialResult
public PartialResult()Default constructor (necessary for the ExternalizableLite interface). -
PartialResult
Construct a PartialResult.- Parameters:
partMask
- the partitions to be included in creating this partial result
-
PartialResult
Construct a PartialResult.- Parameters:
ctx
- the query contextpartMask
- the partitions to be included in creating this partial result
-
PartialResult
Copy constructor for a Result.- Parameters:
result
- the result to copy
-
-
Method Details
-
getSteps
Get the list of steps for this query record partial result in the order that they occurred.- Specified by:
getSteps
in interfaceQueryRecord.PartialResult
- Returns:
- the list of steps
-
getPartitions
Get the set of partitions associated with this partial result.- Specified by:
getPartitions
in interfaceQueryRecord.PartialResult
- Returns:
- the partition set
-
instantiateExplainStep
Instantiate a new explain step for the given filter and add it to this result's list of steps. This method is called on the server for the top level filter.- Parameters:
filter
- the filter- Returns:
- the new explain step
-
instantiateTraceStep
Instantiate a new trace step for the given filter and add it to this result's list of steps. This method is called on the server for the top level filter(s).- Parameters:
filter
- the filter- Returns:
- the new trace step
-
merge
Merge the given result with this one.- Parameters:
result
- the result to merge
-
isMatching
Determine whether or not the given result is capable of being placed in one-to-one correspondence with this result. Results are matching if their owned lists of steps have the same size, and all pairs of steps in the two lists are matching.- Parameters:
result
- the result to be checked- Returns:
- true iff the given result matches with this result
-
readExternal
Restore the contents of this object by loading the object's state from the passed DataInput object.- Specified by:
readExternal
in interfaceExternalizableLite
- Parameters:
in
- the DataInput stream to read data from in order to restore the state of this object- Throws:
IOException
- if an I/O exception occurs
-
writeExternal
Save the contents of this object by storing the object's state into the passed DataOutput object.- Specified by:
writeExternal
in interfaceExternalizableLite
- Parameters:
out
- the DataOutput stream to write the state of this object to- Throws:
IOException
- if an I/O exception occurs
-
readExternal
Restore the contents of a user type instance by reading its state using the specified PofReader object.- Specified by:
readExternal
in interfacePortableObject
- Parameters:
in
- the PofReader from which to read the object's state- Throws:
IOException
- if an I/O error occurs
-
writeExternal
Save the contents of a POF user type instance by writing its state using the specified PofWriter object.- Specified by:
writeExternal
in interfacePortableObject
- Parameters:
out
- the PofWriter to which to write the object's state- Throws:
IOException
- if an I/O error occurs
-