public class QuerySession extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
drillDown(String propositionId,
QueryResultsHandler handler) |
void |
execute(QueryResultsHandler handler)
This method returns the current data for the query session without any
filter or drill down.
|
void |
filter(Filter constraints,
QueryResultsHandler handler) |
List<Proposition> |
getDerived(Proposition proposition)
Gets the abstract propositions that were derived from the given
proposition.
|
List<Proposition> |
getDerived(Proposition proposition,
String[] propId)
Gets the abstract propositions with the given ids that were derived from
the given proposition.
|
String |
getId()
Gets the query session's unique identifier.
|
Query |
getQuery()
Gets the initial query.
|
List<Proposition> |
getReferences(Proposition prop,
String name)
Gets the references for a proposition with the specified reference name.
|
boolean |
isCachingEnabled()
Returns whether the proposition and derived caches are enabled.
|
public boolean isCachingEnabled()
true if enabled, false if disabled.public List<Proposition> getReferences(Proposition prop, String name) throws DataSourceReadException
prop - a Proposition.name - a reference name String.List of propositions, guaranteed not
null.DataSourceReadException - if some of the reference unique
identifiers could not be resolved.UnsupportedOperationException - if caching is disabled.public List<Proposition> getDerived(Proposition proposition)
proposition - a Proposition.Propositions. Will never
be null.UnsupportedOperationException - if caching is disabled.public List<Proposition> getDerived(Proposition proposition, String[] propId)
proposition - a Proposition.propId - a proposition id String[].Propositions. Will never
be null.UnsupportedOperationException - if caching is disabled.public void filter(Filter constraints, QueryResultsHandler handler)
public void drillDown(String propositionId, QueryResultsHandler handler)
public void execute(QueryResultsHandler handler)
handler - The QueryResultsHandler that will be responsible for handling
the result set.Copyright © 2012–2017 Emory University. All rights reserved.