Class RichAResult
- java.lang.Object
-
- org.opencastproject.assetmanager.api.query.RichAResult
-
-
Constructor Summary
Constructors Constructor Description RichAResult(AResult result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcountProperties()Count all properties contained in the result.intcountSnapshots()Count all snapshots contained in the result.longgetLimit()Return the set's size limit.longgetOffset()Return the offset within the total result set.com.entwinemedia.fn.Stream<Property>getProperties()StringgetQuery()Return a string representation of the query.com.entwinemedia.fn.Stream<ARecord>getRecords()Return the found records.longgetSearchTime()Return the search time of the query.longgetSize()Return the size of the retrievedslice.com.entwinemedia.fn.Stream<Snapshot>getSnapshots()Get all selected snapshots.longgetTotalSize()Return the number of items the query could potentially yield.com.entwinemedia.fn.Stream<Version>getVersions()Get all selected versions.Iterator<ARecord>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
RichAResult
public RichAResult(AResult result)
-
-
Method Detail
-
getProperties
public com.entwinemedia.fn.Stream<Property> getProperties()
-
countProperties
public int countProperties()
Count all properties contained in the result.
-
getSnapshots
public com.entwinemedia.fn.Stream<Snapshot> getSnapshots()
Get all selected snapshots.
-
countSnapshots
public int countSnapshots()
Count all snapshots contained in the result.
-
getVersions
public com.entwinemedia.fn.Stream<Version> getVersions()
Get all selected versions.
-
getRecords
public com.entwinemedia.fn.Stream<ARecord> getRecords()
Description copied from interface:AResultReturn the found records.- Specified by:
getRecordsin interfaceAResult
-
getSize
public long getSize()
Description copied from interface:AResultReturn the size of the retrievedslice. This value is <=AResult.getLimit().- Specified by:
getSizein interfaceAResult- See Also:
AResult.getLimit()
-
getQuery
public String getQuery()
Description copied from interface:AResultReturn a string representation of the query.
-
getTotalSize
public long getTotalSize()
Description copied from interface:AResultReturn the number of items the query could potentially yield.- Specified by:
getTotalSizein interfaceAResult- Returns:
- the total value or -1 to indicate that the value has not been calculated
-
getLimit
public long getLimit()
Description copied from interface:AResultReturn the set's size limit. It reflects the requested page size if specified in the query. This value is >=AResult.getSize().- Specified by:
getLimitin interfaceAResult- Returns:
- the requested size limit or -1 if none has been specified
- See Also:
AResult.getSize()
-
getOffset
public long getOffset()
Description copied from interface:AResultReturn the offset within the total result set.
-
getSearchTime
public long getSearchTime()
Description copied from interface:AResultReturn the search time of the query.- Specified by:
getSearchTimein interfaceAResult- Returns:
- the search time or -1 to indicate that it has not been measured
-
-