Class MongoStreamHelper<F,E extends F>
java.lang.Object
io.clonecloudstore.common.database.mongo.MongoStreamHelper<F,E>
- Type Parameters:
F
- the DAO interface typeE
- the real DAO type
- All Implemented Interfaces:
StreamHelperInterface<E>
Mongo implementation of the StreamHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindIterator
(ExtendedPanacheMongoRepositoryBase<F, E> repositoryBase, org.bson.Document document) findIterator
(RepositoryBaseInterface<E> repositoryBase, DbQuery query) findStream
(RepositoryBaseInterface<E> repositoryBase, DbQuery query)
-
Field Details
-
MAX_LIST
public static final int MAX_LIST- See Also:
-
-
Constructor Details
-
MongoStreamHelper
public MongoStreamHelper()Constructor
-
-
Method Details
-
findStream
public Stream<E> findStream(RepositoryBaseInterface<E> repositoryBase, DbQuery query) throws CcsDbException - Specified by:
findStream
in interfaceStreamHelperInterface<F>
- Parameters:
repositoryBase
- the repository to usequery
- the query- Returns:
- the stream of elements
- Throws:
CcsDbException
-
findIterator
public ClosingIterator<E> findIterator(ExtendedPanacheMongoRepositoryBase<F, E> repositoryBase, org.bson.Document document) throws CcsDbException- Throws:
CcsDbException
-
findIterator
public ClosingIterator<E> findIterator(RepositoryBaseInterface<E> repositoryBase, DbQuery query) throws CcsDbException - Specified by:
findIterator
in interfaceStreamHelperInterface<F>
- Parameters:
repositoryBase
- the repository to usequery
- the query- Returns:
- the iterator of elements
- Throws:
CcsDbException
-