public abstract class IndexQueryFactory extends Object
| Constructor and Description |
|---|
IndexQueryFactory() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getBrowsableFields(List<String> fields,
com.google.common.collect.BiMap<String,String> aliases)
Gets the list of aliases available for browse
|
List<String> |
getBrowsableFields(List<String> fields,
MetadataReference mdRef) |
Pruner |
getCqlPruner()
Gets the cql pruner.
|
Map<String,List<String>> |
getDefaultQueryParams()
Gets the default query params.
|
IndexQuery |
getIndexQuery(QueryLanguage lang,
String query,
AbstractIndexClient client,
MetadataReference mdRef)
Gets the index query.
|
Pruner |
getPruner()
Gets the pruner.
|
protected abstract IndexQuery |
newInstance(eu.dnetlib.functionality.cql.lucene.TranslatedQuery cql,
eu.dnetlib.functionality.index.query.Pruner.Result res,
QueryLanguage queryLanguage)
New instance.
|
void |
setCqlPruner(Pruner cqlPruner)
Sets the cql pruner.
|
void |
setDefaultQueryParams(Map<String,List<String>> defaultQueryParams)
Sets the default query params.
|
void |
setPruner(Pruner pruner)
Sets the pruner.
|
protected abstract IndexQuery |
setQueryOptions(IndexQuery indexQuery,
AbstractIndexClient client)
Sets the query options.
|
protected abstract IndexQuery newInstance(eu.dnetlib.functionality.cql.lucene.TranslatedQuery cql, eu.dnetlib.functionality.index.query.Pruner.Result res, QueryLanguage queryLanguage)
cql - the cqlres - the resqueryLanguage - the query languageprotected abstract IndexQuery setQueryOptions(IndexQuery indexQuery, AbstractIndexClient client)
indexQuery - the index querypublic IndexQuery getIndexQuery(QueryLanguage lang, String query, AbstractIndexClient client, MetadataReference mdRef) throws IndexClientException
lang - the langquery - the querymdRef - the md refeu.dnetlib.data.provision.index.rmi.IndexServiceException - the index service exceptionIndexClientExceptionpublic List<String> getBrowsableFields(List<String> fields, MetadataReference mdRef) throws IndexClientException
IndexClientExceptionpublic List<String> getBrowsableFields(List<String> fields, com.google.common.collect.BiMap<String,String> aliases)
fields - list of input fieldsaliases - key= non-browasbale-field-name, value=browsable-field-namepublic Pruner getPruner()
public void setPruner(Pruner pruner)
pruner - the new prunerpublic Pruner getCqlPruner()
public void setCqlPruner(Pruner cqlPruner)
cqlPruner - the new cql prunerpublic Map<String,List<String>> getDefaultQueryParams()
Copyright © 2019. All rights reserved.