Class SolrSearchResponse
- java.lang.Object
-
- org.springframework.data.domain.PageImpl<Object>
-
- com.broadleafcommerce.search.api.domain.SearchResponse
-
- com.broadleafcommerce.search.provider.solr.api.domain.SolrSearchResponse
-
- All Implemented Interfaces:
Serializable
,Iterable<Object>
,Supplier<Stream<Object>>
,org.springframework.data.domain.Page<Object>
,org.springframework.data.domain.Slice<Object>
,org.springframework.data.util.Streamable<Object>
public class SolrSearchResponse extends com.broadleafcommerce.search.api.domain.SearchResponse
Solr specificSearchResponse
to include rawQueryResponse
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SolrSearchResponse(List<Object> content, org.springframework.data.domain.Pageable pageable, long total)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
List<T>
getContent()
protected <U extends Object>
List<U>getConvertedContent(Function<? super T,? extends U> arg0)
String
getDebug()
The raw query response for debugging purposes.int
getNumber()
int
getNumberOfElements()
org.springframework.data.domain.Pageable
getPageable()
int
getSize()
org.springframework.data.domain.Sort
getSort()
boolean
hasContent()
int
hashCode()
boolean
hasPrevious()
boolean
isFirst()
Iterator<T>
iterator()
org.springframework.data.domain.Pageable
nextPageable()
org.springframework.data.domain.Pageable
previousPageable()
void
setDebug(String debug)
The raw query response for debugging purposes.String
toString()
-
Methods inherited from class com.broadleafcommerce.search.api.domain.SearchResponse
getFacets, getRedirect, getSorts, getSpellCheckResult, isCorrectedQuery, setCorrectedQuery, setFacets, setRedirect, setSorts, setSpellCheckResult
-
Methods inherited from class org.springframework.data.domain.PageImpl
getTotalElements, getTotalPages, hasNext, isLast, map
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
getDebug
public String getDebug()
The raw query response for debugging purposes.- Returns:
- raw query response
-
setDebug
public void setDebug(String debug)
The raw query response for debugging purposes.- Parameters:
debug
- raw query response
-
toString
public String toString()
- Overrides:
toString
in classcom.broadleafcommerce.search.api.domain.SearchResponse
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.broadleafcommerce.search.api.domain.SearchResponse
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqual
in classcom.broadleafcommerce.search.api.domain.SearchResponse
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.broadleafcommerce.search.api.domain.SearchResponse
-
getNumber
public int getNumber()
- Specified by:
getNumber
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getSize
public int getSize()
- Specified by:
getSize
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getNumberOfElements
public int getNumberOfElements()
- Specified by:
getNumberOfElements
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
isFirst
public boolean isFirst()
- Specified by:
isFirst
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
nextPageable
public org.springframework.data.domain.Pageable nextPageable()
- Specified by:
nextPageable
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
previousPageable
public org.springframework.data.domain.Pageable previousPageable()
- Specified by:
previousPageable
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
hasContent
public boolean hasContent()
- Specified by:
hasContent
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getContent
public List<T> getContent()
- Specified by:
getContent
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getPageable
public org.springframework.data.domain.Pageable getPageable()
- Specified by:
getPageable
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getSort
public org.springframework.data.domain.Sort getSort()
- Specified by:
getSort
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
iterator
public Iterator<T> iterator()
-
-