org.gcube.opensearch.opensearchdatasource.processor
Class GcqlProcessor

java.lang.Object
  extended by org.gcube.opensearch.opensearchdatasource.processor.GcqlProcessor
Direct Known Subclasses:
OpenSearchGcqlProcessor

public abstract class GcqlProcessor
extends Object

This class wraps the functionality needed to process a gCQL query and produce data that can be used by a resource that is implemented in a specific technology


Field Summary
protected  List<String> presentableFields
           
protected  List<String> searchableFields
           
 
Constructor Summary
GcqlProcessor()
           
 
Method Summary
protected  String findPresentable(String proj)
           
abstract  search.library.util.cql.query.tree.GCQLNode parseQuery(String gCQLQuery)
           
abstract  GcqlQueryContainer processQuery(List<String> presentableFields, List<String> searchableFields)
           
static String removeQuotes(String term)
           
static String[] splitTerms(String term)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

presentableFields

protected List<String> presentableFields

searchableFields

protected List<String> searchableFields
Constructor Detail

GcqlProcessor

public GcqlProcessor()
Method Detail

parseQuery

public abstract search.library.util.cql.query.tree.GCQLNode parseQuery(String gCQLQuery)
                                                                throws Exception
Throws:
Exception

processQuery

public abstract GcqlQueryContainer processQuery(List<String> presentableFields,
                                                List<String> searchableFields)
                                         throws Exception
Throws:
Exception

findPresentable

protected String findPresentable(String proj)

splitTerms

public static String[] splitTerms(String term)

removeQuotes

public static String removeQuotes(String term)


Copyright © 2013. All Rights Reserved.