Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.util
Class SimpleQueryRecord.PartialResult

java.lang.Object
  extended by com.tangosol.util.SimpleQueryRecord.PartialResult

All Implemented Interfaces:
ExternalizableLite, PortableObject, QueryRecord.PartialResult, java.io.Serializable
Enclosing class:
SimpleQueryRecord

public static class SimpleQueryRecord.PartialResult
extends java.lang.Object
implements QueryRecord.PartialResult, ExternalizableLite, PortableObject

Simple QueryRecord.PartialResult implementation.


Nested Class Summary
 class SimpleQueryRecord.PartialResult.AbstractRecordableStep
          Simple abstract RecordableStep implementation.
 class SimpleQueryRecord.PartialResult.ExplainStep
          Simple QueryRecord.PartialResult.ExplainStep implementation.
static class SimpleQueryRecord.PartialResult.IndexLookupRecord
          Simple QueryRecord.PartialResult.IndexLookupRecord implementation.
static class SimpleQueryRecord.PartialResult.Step
          Simple QueryRecord.PartialResult.Step implementation.
 class SimpleQueryRecord.PartialResult.TraceStep
          Simple QueryRecord.PartialResult.TraceStep implementation.

 

Nested classes/interfaces inherited from interface com.tangosol.util.QueryRecord.PartialResult
QueryRecord.PartialResult.RecordableStep

 

Field Summary
protected  java.util.List m_listSteps
          The map of steps.

 

Constructor Summary
SimpleQueryRecord.PartialResult()
          Default constructor (necessary for the ExternalizableLite interface).
SimpleQueryRecord.PartialResult(PartitionSet partMask)
          Construct a PartialResult.
SimpleQueryRecord.PartialResult(QueryContext ctx, PartitionSet partMask)
          Construct a PartialResult.
SimpleQueryRecord.PartialResult(QueryRecord.PartialResult result)
          Copy constructor for a Result.

 

Method Summary
 PartitionSet getPartitions()
          Get the set of partitions associated with this partial result.
 java.util.List getSteps()
          Get the list of steps for this query record partial result in the order that they occurred.
 QueryRecord.PartialResult.ExplainStep instantiateExplainStep(Filter filter)
          Instantiate a new explain step for the given filter and add it to this result's list of steps.
 QueryRecord.PartialResult.TraceStep 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 readExternal(java.io.DataInput in)
          Restore the contents of this object by loading the object's state from the passed DataInput object.
 void readExternal(PofReader in)
          Restore the contents of a user type instance by reading its state using the specified PofReader object.
 void writeExternal(java.io.DataOutput out)
          Save the contents of this object by storing the object's state into the passed DataOutput object.
 void writeExternal(PofWriter out)
          Save the contents of a POF user type instance by writing its state using the specified PofWriter object.

 

Field Detail

m_listSteps

protected java.util.List m_listSteps
The map of steps.

Constructor Detail

SimpleQueryRecord.PartialResult

public SimpleQueryRecord.PartialResult()
Default constructor (necessary for the ExternalizableLite interface).

SimpleQueryRecord.PartialResult

public SimpleQueryRecord.PartialResult(PartitionSet partMask)
Construct a PartialResult.
Parameters:
partMask - the partitions to be included in creating this partial result

SimpleQueryRecord.PartialResult

public SimpleQueryRecord.PartialResult(QueryContext ctx,
                                       PartitionSet partMask)
Construct a PartialResult.
Parameters:
ctx - the query context
partMask - the partitions to be included in creating this partial result

SimpleQueryRecord.PartialResult

public SimpleQueryRecord.PartialResult(QueryRecord.PartialResult result)
Copy constructor for a Result.
Parameters:
result - the result to copy

Method Detail

getSteps

public java.util.List getSteps()
Get the list of steps for this query record partial result in the order that they occurred.
Specified by:
getSteps in interface QueryRecord.PartialResult
Returns:
the list of steps

getPartitions

public PartitionSet getPartitions()
Get the set of partitions associated with this partial result.
Specified by:
getPartitions in interface QueryRecord.PartialResult
Returns:
the partition set

instantiateExplainStep

public QueryRecord.PartialResult.ExplainStep instantiateExplainStep(Filter filter)
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

public QueryRecord.PartialResult.TraceStep instantiateTraceStep(Filter filter)
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

protected void merge(QueryRecord.PartialResult result)
Merge the given result with this one.
Parameters:
result - the result to merge

isMatching

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. 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

public void readExternal(java.io.DataInput in)
                  throws java.io.IOException
Restore the contents of this object by loading the object's state from the passed DataInput object.
Specified by:
readExternal in interface ExternalizableLite
Parameters:
in - the DataInput stream to read data from in order to restore the state of this object
Throws:
java.io.IOException - if an I/O exception occurs
java.io.NotActiveException - if the object is not in its initial state, and therefore cannot be deserialized into

writeExternal

public void writeExternal(java.io.DataOutput out)
                   throws java.io.IOException
Save the contents of this object by storing the object's state into the passed DataOutput object.
Specified by:
writeExternal in interface ExternalizableLite
Parameters:
out - the DataOutput stream to write the state of this object to
Throws:
java.io.IOException - if an I/O exception occurs

readExternal

public void readExternal(PofReader in)
                  throws java.io.IOException
Restore the contents of a user type instance by reading its state using the specified PofReader object.
Specified by:
readExternal in interface PortableObject
Parameters:
in - the PofReader from which to read the object's state
Throws:
java.io.IOException - if an I/O error occurs

writeExternal

public void writeExternal(PofWriter out)
                   throws java.io.IOException
Save the contents of a POF user type instance by writing its state using the specified PofWriter object.
Specified by:
writeExternal in interface PortableObject
Parameters:
out - the PofWriter to which to write the object's state
Throws:
java.io.IOException - if an I/O error occurs

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.