Class RichAResult
java.lang.Object
org.opencastproject.assetmanager.api.query.RichAResult
Extensions for
AResult.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCount all properties contained in the result.intCount all snapshots contained in the result.longgetLimit()Return the set's size limit.longReturn the offset within the total result set.getQuery()Return a string representation of the query.Return the found records.longReturn the search time of the query.longgetSize()Return the size of the retrievedslice.Get all selected snapshots.longReturn the number of items the query could potentially yield.Get all selected versions.iterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
RichAResult
-
-
Method Details
-
getProperties
-
countProperties
public int countProperties()Count all properties contained in the result. -
getSnapshots
Get all selected snapshots. -
countSnapshots
public int countSnapshots()Count all snapshots contained in the result. -
getVersions
Get all selected versions. -
iterator
-
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(). -
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(). -
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
-