org.openanzo.glitter.query
Class Ask

java.lang.Object
  extended by org.openanzo.glitter.query.Ask
All Implemented Interfaces:
QueryResultForm

public class Ask
extends java.lang.Object
implements QueryResultForm

The Ask query form serializes results as a booealn depending on whether or not there are any solutions in the result set.

Author:
lee

Constructor Summary
Ask()
           
 
Method Summary
 SolutionSet refineSolutions(SolutionSet solutions)
          Result forms are given a chance to apply solution modifiers to the solution set before transforming the results.
 java.lang.Object serializeResults(SolutionSet results)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ask

public Ask()
Method Detail

refineSolutions

public SolutionSet refineSolutions(SolutionSet solutions)
Description copied from interface: QueryResultForm
Result forms are given a chance to apply solution modifiers to the solution set before transforming the results. (For example, Projection might apply DISTINCT here.

Specified by:
refineSolutions in interface QueryResultForm
Parameters:
solutions - The original solution set
Returns:
The (possibly) modified solution set

serializeResults

public java.lang.Object serializeResults(SolutionSet results)
Specified by:
serializeResults in interface QueryResultForm
Parameters:
results - The solution set after all solution modified have been applied.
Returns:
A form of the solution set specific to this QueryResultForm.


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.