Class StandardFindResult
- java.lang.Object
-
- de.hybris.platform.persistence.polyglot.search.StandardFindResult
-
- All Implemented Interfaces:
FindResult
public class StandardFindResult extends java.lang.Object implements FindResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStandardFindResult.FindResultBuilderstatic classStandardFindResult.StandardFindResultBuilderstatic classStandardFindResult.StreamFindResultBuilder
-
Field Summary
Fields Modifier and Type Field Description static intNO_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StandardFindResult.StandardFindResultBuilderbuildFromFindResults(java.util.List<FindResult> findResults)static StandardFindResult.StandardFindResultBuilderbuildFromStream(java.util.stream.Stream<ItemStateView> stream)intgetCount()Gets the size of result collection with respect to specified range or -1 if method is not supportedjava.util.stream.Stream<ItemStateView>getResult()intgetTotalCount()If requested in search criteria gets overall count of the search result without respecting a specified search range otherwise could return -1
-
-
-
Field Detail
-
NO_VALUE
public static final int NO_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildFromStream
public static StandardFindResult.StandardFindResultBuilder buildFromStream(java.util.stream.Stream<ItemStateView> stream)
-
buildFromFindResults
public static StandardFindResult.StandardFindResultBuilder buildFromFindResults(java.util.List<FindResult> findResults)
-
getCount
public int getCount()
Description copied from interface:FindResultGets the size of result collection with respect to specified range or -1 if method is not supported- Specified by:
getCountin interfaceFindResult- Returns:
- the size of search result with respect to specified range, or -1 if method is not supported
-
getTotalCount
public int getTotalCount()
Description copied from interface:FindResultIf requested in search criteria gets overall count of the search result without respecting a specified search range otherwise could return -1- Specified by:
getTotalCountin interfaceFindResult- Returns:
- the size of overall search result if requested in search criteria, or -1 if the total count is not needed
-
getResult
public java.util.stream.Stream<ItemStateView> getResult()
- Specified by:
getResultin interfaceFindResult
-
-