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 T
getParsedQuery()
Get the parsed query as an abstract syntax tree.String
getQueryType()
Get the short name for this parsed query, e.g.String
getRawQuery()
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.
-
-