Package org.codelibs.fess.util
Class QueryResponseList
- java.lang.Object
-
- org.codelibs.fess.util.QueryResponseList
-
-
Field Summary
Fields Modifier and Type Field Description protected intallPageCountprotected longallRecordCountprotected StringallRecordCountRelationprotected longcurrentEndRecordNumberprotected intcurrentPageNumberThe value of current page number.protected longcurrentStartRecordNumberprotected static StringELLIPSISprotected longexecTimeprotected booleanexistNextPageprotected booleanexistPrevPageprotected FacetResponsefacetResponseprotected List<String>pageNumberListprotected intpageSizeThe value of current page number.protected List<Map<String,Object>>parentprotected booleanpartialResultsprotected longqueryTimeprotected StringsearchQuery
-
Constructor Summary
Constructors Modifier Constructor Description QueryResponseList()protectedQueryResponseList(List<Map<String,Object>> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, Map<String,Object> element)booleanadd(Map<String,Object> e)booleanaddAll(int index, Collection<? extends Map<String,Object>> c)booleanaddAll(Collection<? extends Map<String,Object>> c)protected voidcalculatePageInfo(int start, int size)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)booleanequals(Object o)Map<String,Object>get(int index)intgetAllPageCount()longgetAllRecordCount()StringgetAllRecordCountRelation()longgetCurrentEndRecordNumber()intgetCurrentPageNumber()longgetCurrentStartRecordNumber()longgetExecTime()FacetResponsegetFacetResponse()List<String>getPageNumberList()intgetPageSize()longgetQueryTime()StringgetSearchQuery()inthashCode()intindexOf(Object o)voidinit(org.dbflute.optional.OptionalEntity<org.elasticsearch.action.search.SearchResponse> searchResponseOpt, int start, int pageSize)booleanisEmpty()booleanisExistNextPage()booleanisExistPrevPage()booleanisPartialResults()Iterator<Map<String,Object>>iterator()intlastIndexOf(Object o)ListIterator<Map<String,Object>>listIterator()ListIterator<Map<String,Object>>listIterator(int index)protected Map<String,Object>parseSearchHit(FessConfig fessConfig, String hlPrefix, org.elasticsearch.search.SearchHit searchHit)Map<String,Object>remove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)Map<String,Object>set(int index, Map<String,Object> element)voidsetExecTime(long execTime)voidsetSearchQuery(String searchQuery)intsize()List<Map<String,Object>>subList(int fromIndex, int toIndex)Object[]toArray()<T> T[]toArray(T[] a)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
-
-
-
Field Detail
-
ELLIPSIS
protected static final String ELLIPSIS
- See Also:
- Constant Field Values
-
pageSize
protected int pageSize
The value of current page number.
-
currentPageNumber
protected int currentPageNumber
The value of current page number.
-
allRecordCount
protected long allRecordCount
-
allRecordCountRelation
protected String allRecordCountRelation
-
allPageCount
protected int allPageCount
-
existNextPage
protected boolean existNextPage
-
existPrevPage
protected boolean existPrevPage
-
currentStartRecordNumber
protected long currentStartRecordNumber
-
currentEndRecordNumber
protected long currentEndRecordNumber
-
searchQuery
protected String searchQuery
-
execTime
protected long execTime
-
facetResponse
protected FacetResponse facetResponse
-
partialResults
protected boolean partialResults
-
queryTime
protected long queryTime
-
-
Method Detail
-
init
public void init(org.dbflute.optional.OptionalEntity<org.elasticsearch.action.search.SearchResponse> searchResponseOpt, int start, int pageSize)
-
parseSearchHit
protected Map<String,Object> parseSearchHit(FessConfig fessConfig, String hlPrefix, org.elasticsearch.search.SearchHit searchHit)
-
calculatePageInfo
protected void calculatePageInfo(int start, int size)
-
addAll
public boolean addAll(Collection<? extends Map<String,Object>> c)
-
addAll
public boolean addAll(int index, Collection<? extends Map<String,Object>> c)
-
clear
public void clear()
-
contains
public boolean contains(Object o)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<Map<String,Object>>- Specified by:
containsAllin interfaceList<Map<String,Object>>
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
isEmpty
public boolean isEmpty()
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<Map<String,Object>>
-
listIterator
public ListIterator<Map<String,Object>> listIterator()
- Specified by:
listIteratorin interfaceList<Map<String,Object>>
-
listIterator
public ListIterator<Map<String,Object>> listIterator(int index)
- Specified by:
listIteratorin interfaceList<Map<String,Object>>
-
remove
public boolean remove(Object o)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
size
public int size()
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
getPageSize
public int getPageSize()
-
getCurrentPageNumber
public int getCurrentPageNumber()
-
getAllRecordCount
public long getAllRecordCount()
-
getAllRecordCountRelation
public String getAllRecordCountRelation()
-
getAllPageCount
public int getAllPageCount()
-
isExistNextPage
public boolean isExistNextPage()
-
isExistPrevPage
public boolean isExistPrevPage()
-
getCurrentStartRecordNumber
public long getCurrentStartRecordNumber()
-
getCurrentEndRecordNumber
public long getCurrentEndRecordNumber()
-
getSearchQuery
public String getSearchQuery()
-
setSearchQuery
public void setSearchQuery(String searchQuery)
-
getExecTime
public long getExecTime()
-
setExecTime
public void setExecTime(long execTime)
-
getFacetResponse
public FacetResponse getFacetResponse()
-
isPartialResults
public boolean isPartialResults()
-
getQueryTime
public long getQueryTime()
-
-