public abstract class QueryResponseParser extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.BiMap<String,String> |
aliases
The aliases.
|
protected eu.dnetlib.miscutils.functional.UnaryFunction<String,String> |
highlightUtils
The highlight utils.
|
protected boolean |
includeRanking
The include ranking.
|
protected boolean |
returnEmptyFields
The return empty fields.
|
protected eu.dnetlib.miscutils.functional.UnaryFunction<String,IndexDocument> |
wrapperNoRank
The wrapper no rank.
|
protected eu.dnetlib.miscutils.functional.UnaryFunction<String,IndexDocument> |
wrapperRank
The wrapper rank.
|
| Constructor and Description |
|---|
QueryResponseParser(eu.dnetlib.miscutils.functional.UnaryFunction<String,String> highlightUtils,
com.google.common.collect.BiMap<String,String> aliases,
boolean returnEmptyFields,
boolean includeRanking)
Instantiates a new query response parser.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.BiMap<String,String> |
getAliases() |
abstract List<eu.dnetlib.data.provision.index.rmi.BrowsingRow> |
getBrowsingResults()
Gets the browsing results.
|
abstract int |
getCurrentSize()
Gets the current size.
|
abstract long |
getElapsedTime()
Gets the elapsed time.
|
abstract Long |
getNumberOfBrowsingResults()
method counts the number of facet fields resulting from the performed query.
|
abstract long |
getNumFound()
Gets the num found.
|
abstract int |
getQueryTime()
Gets the query time.
|
abstract List<String> |
getResults()
Gets the results.
|
abstract long |
getStart()
Gets the start.
|
abstract String |
getStatus()
Gets the status.
|
protected final eu.dnetlib.miscutils.functional.UnaryFunction<String,String> highlightUtils
protected final boolean returnEmptyFields
protected final boolean includeRanking
protected final eu.dnetlib.miscutils.functional.UnaryFunction<String,IndexDocument> wrapperRank
protected final eu.dnetlib.miscutils.functional.UnaryFunction<String,IndexDocument> wrapperNoRank
public QueryResponseParser(eu.dnetlib.miscutils.functional.UnaryFunction<String,String> highlightUtils, com.google.common.collect.BiMap<String,String> aliases, boolean returnEmptyFields, boolean includeRanking)
highlightUtils - the highlight utilsaliases - the aliasesreturnEmptyFields - the return empty fieldsincludeRanking - the include rankingpublic abstract long getNumFound()
public abstract int getQueryTime()
public abstract long getElapsedTime()
public abstract String getStatus()
public abstract long getStart()
public abstract int getCurrentSize()
public abstract List<String> getResults()
public abstract Long getNumberOfBrowsingResults()
public abstract List<eu.dnetlib.data.provision.index.rmi.BrowsingRow> getBrowsingResults()
Copyright © 2019. All rights reserved.