Class AResultImpl
java.lang.Object
org.opencastproject.assetmanager.impl.query.AResultImpl
-
Constructor Summary
ConstructorsConstructorDescriptionAResultImpl(LinkedHashSet<ARecord> records, long size, long offset, long limit, long searchTime) -
Method Summary
Modifier and TypeMethodDescriptionlonggetLimit()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.longReturn the number of items the query could potentially yield.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
-
AResultImpl
public AResultImpl(LinkedHashSet<ARecord> records, long size, long offset, long limit, long searchTime)
-
-
Method Details
-
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
-