Package eu.clarin.sru.server
Interface SRUQuery<T>
-
- Type Parameters:
T- abstract syntax tree (object) for parsed queries.
- All Known Implementing Classes:
CQLQueryParser.CQLQuery,SearchTermsQueryParser.SearchTermsQuery,SRUQueryBase
public interface SRUQuery<T>Holder class for a parsed query to be returned from aSRUQueryParser.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetParsedQuery()Get the parsed query as an abstract syntax tree.StringgetQueryType()Get the short name for this parsed query, e.g.StringgetRawQuery()Get the original query as a string.
-
-
-
Method Detail
-
getQueryType
String getQueryType()
Get the short name for this parsed query, e.g. "cql".- Returns:
- the short name for the query
-
getRawQuery
String getRawQuery()
Get the original query as a string.- Returns:
- the original query
-
getParsedQuery
T getParsedQuery()
Get the parsed query as an abstract syntax tree.- Returns:
- the parsed query as an abstract syntax tree.
-
-