public interface CqlTranslator
| Modifier and Type | Method and Description |
|---|---|
TranslatedQuery |
getTranslatedQuery(org.z3950.zing.cql.CQLNode queryRoot,
CqlValueTransformerMap valueTransformerMap)
method performs the translation and returns a TranslatedQuery object which contains the translated query and the
cql-related options.
|
TranslatedQuery |
getTranslatedQuery(org.z3950.zing.cql.CQLNode queryRoot,
CqlValueTransformerMap valueTransformerMap,
Map<String,List<String>> options,
com.google.common.collect.BiMap<String,String> aliases,
Map<String,String> weights)
method performs the translation and returns a TranslatedQuery object which contains the translated query and the
cql-related options.
|
TranslatedQuery |
getTranslatedQuery(String cqlQuery)
method performs the translation and returns a TranslatedQuery object which contains the translated query and the
cql-related options.
|
TranslatedQuery |
getTranslatedQuery(String cqlQuery,
CqlValueTransformerMap valueTransformerMap)
method performs the translation and returns a TranslatedQuery object which contains the translated query and the
cql-related options.
|
TranslatedQuery |
getTranslatedQuery(String cqlQuery,
CqlValueTransformerMap valueTransformerMap,
Map<String,List<String>> options)
method performs the translation and returns a TranslatedQuery object which contains the translated query and the
cql-related options.
|
TranslatedQuery |
getTranslatedQuery(String cqlQuery,
Map<String,List<String>> options)
method performs the translation and returns a TranslatedQuery object which contains the translated query and the
cql-related options.
|
String |
toLucene(org.z3950.zing.cql.CQLNode queryRoot)
main translator method
|
String |
toLucene(org.z3950.zing.cql.CQLNode queryRoot,
CqlValueTransformerMap valueTransformerMap)
main translator method
|
String |
toLucene(org.z3950.zing.cql.CQLNode queryRoot,
CqlValueTransformerMap valueTransformerMap,
Map<String,List<String>> options)
main translator method
|
String |
toLucene(String queryRoot)
main translator method
|
String |
toLucene(String queryRoot,
CqlValueTransformerMap valueTransformerMap)
main translator method
|
String |
toLucene(String queryRoot,
Map<String,List<String>> options)
main translator method
|
org.bson.conversions.Bson |
toMongo(String cqlQuery)
Translates a cql query in a mongodb query.
|
String toLucene(String queryRoot) throws org.z3950.zing.cql.CQLParseException, IOException
queryRoot - String representation of the cql queryoptions - options that modify the behavior of cql parsingorg.z3950.zing.cql.CQLParseExceptionIOExceptionString toLucene(String queryRoot, Map<String,List<String>> options) throws org.z3950.zing.cql.CQLParseException, IOException
queryRoot - String representation of the cql queryorg.z3950.zing.cql.CQLParseExceptionIOExceptionString toLucene(String queryRoot, CqlValueTransformerMap valueTransformerMap) throws org.z3950.zing.cql.CQLParseException, IOException
queryRoot - String representation of the cql queryvalueTransformerMap - callbacks which allow us to normalize field values when we know about themorg.z3950.zing.cql.CQLParseExceptionIOExceptionString toLucene(org.z3950.zing.cql.CQLNode queryRoot) throws org.z3950.zing.cql.CQLParseException, IOException
queryRoot - Pre-parsed representation of the cql queryorg.z3950.zing.cql.CQLParseExceptionIOExceptionString toLucene(org.z3950.zing.cql.CQLNode queryRoot, CqlValueTransformerMap valueTransformerMap) throws org.z3950.zing.cql.CQLParseException, IOException
queryRoot - Pre-parsed representation of the cql queryvalueTransformerMap - callbacks which allow us to normalize field values when we know about themorg.z3950.zing.cql.CQLParseExceptionIOExceptionString toLucene(org.z3950.zing.cql.CQLNode queryRoot, CqlValueTransformerMap valueTransformerMap, Map<String,List<String>> options) throws org.z3950.zing.cql.CQLParseException, IOException
queryRoot - Pre-parsed representation of the cql queryvalueTransformerMap - callbacks which allow us to normalize field values when we know about themoptions - options that modify the behavior of cql parsingorg.z3950.zing.cql.CQLParseExceptionIOExceptionTranslatedQuery getTranslatedQuery(String cqlQuery) throws org.z3950.zing.cql.CQLParseException, IOException
queryRoot - Pre-parsed representation of the cql queryvalueTransformerMap - callbacks which allow us to normalize field values when we know about themorg.z3950.zing.cql.CQLParseExceptionIOExceptionTranslatedQuery getTranslatedQuery(org.z3950.zing.cql.CQLNode queryRoot, CqlValueTransformerMap valueTransformerMap) throws org.z3950.zing.cql.CQLParseException, IOException
queryRoot - Pre-parsed representation of the cql queryvalueTransformerMap - callbacks which allow us to normalize field values when we know about themorg.z3950.zing.cql.CQLParseExceptionIOExceptionTranslatedQuery getTranslatedQuery(org.z3950.zing.cql.CQLNode queryRoot, CqlValueTransformerMap valueTransformerMap, Map<String,List<String>> options, com.google.common.collect.BiMap<String,String> aliases, Map<String,String> weights) throws org.z3950.zing.cql.CQLParseException, IOException
queryRoot - Pre-parsed representation of the cql queryvalueTransformerMap - callbacks which allow us to normalize field values when we know about themoptions - options that modify the behavior of cql parsingorg.z3950.zing.cql.CQLParseExceptionIOExceptionTranslatedQuery getTranslatedQuery(String cqlQuery, Map<String,List<String>> options) throws org.z3950.zing.cql.CQLParseException, IOException
queryRoot - Pre-parsed representation of the cql queryvalueTransformerMap - callbacks which allow us to normalize field values when we know about themoptions - options that modify the behavior of cql parsingorg.z3950.zing.cql.CQLParseExceptionIOExceptionTranslatedQuery getTranslatedQuery(String cqlQuery, CqlValueTransformerMap valueTransformerMap) throws org.z3950.zing.cql.CQLParseException, IOException
queryRoot - Pre-parsed representation of the cql queryvalueTransformerMap - callbacks which allow us to normalize field values when we know about themorg.z3950.zing.cql.CQLParseExceptionIOExceptionTranslatedQuery getTranslatedQuery(String cqlQuery, CqlValueTransformerMap valueTransformerMap, Map<String,List<String>> options) throws org.z3950.zing.cql.CQLParseException, IOException
queryRoot - Pre-parsed representation of the cql queryvalueTransformerMap - callbacks which allow us to normalize field values when we know about themoptions - options that modify the behavior of cql parsingorg.z3950.zing.cql.CQLParseExceptionIOExceptionorg.bson.conversions.Bson toMongo(String cqlQuery) throws IOException, org.z3950.zing.cql.CQLParseException
cqlQuery - the query to be translated.IOExceptionorg.z3950.zing.cql.CQLParseExceptionCopyright © 2017. All rights reserved.