Package se.l4.silo.results
Class TransformingFetchResult<T>
- java.lang.Object
-
- se.l4.silo.results.TransformingFetchResult<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
AutoCloseable,Iterable<T>,FetchResult<T>
- Direct Known Subclasses:
TransformingQueryFetchResult
public class TransformingFetchResult<T> extends Object implements FetchResult<T>
FetchResultthat transforms found entries.- Author:
- Andreas Holstenson
-
-
Constructor Summary
Constructors Constructor Description TransformingFetchResult(FetchResult<I> in, Function<I,T> func)
-
Method Summary
Modifier and Type Method Description voidclose()longgetLimit()Get the limit used to fetch these results.longgetOffset()Get the offset used to fetch these results.longgetSize()Get the number of returned results.longgetTotal()Get the total number of results available.booleanisEmpty()Check if these results are empty.Iterator<T>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface se.l4.silo.FetchResult
first, parallelStream, spliterator, stream, transform
-
-
-
-
Constructor Detail
-
TransformingFetchResult
public TransformingFetchResult(FetchResult<I> in, Function<I,T> func)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceFetchResult<T>
-
isEmpty
public boolean isEmpty()
Description copied from interface:FetchResultCheck if these results are empty.- Specified by:
isEmptyin interfaceFetchResult<T>- Returns:
-
getLimit
public long getLimit()
Description copied from interface:FetchResultGet the limit used to fetch these results.- Specified by:
getLimitin interfaceFetchResult<T>- Returns:
-
getOffset
public long getOffset()
Description copied from interface:FetchResultGet the offset used to fetch these results.- Specified by:
getOffsetin interfaceFetchResult<T>- Returns:
-
getSize
public long getSize()
Description copied from interface:FetchResultGet the number of returned results.- Specified by:
getSizein interfaceFetchResult<T>- Returns:
-
getTotal
public long getTotal()
Description copied from interface:FetchResultGet the total number of results available.- Specified by:
getTotalin interfaceFetchResult<T>- Returns:
-
-