Package info.archinnov.achilles.internal.persistence.operations

Examples of info.archinnov.achilles.internal.persistence.operations.TypedMapIterator


     * @return Iterator<TypedMap>
     */
    public Iterator<TypedMap> iterator() {
        log.debug("Execute native query {} and return iterator", nativeStatementWrapper.getStatement());
        final ListenableFuture<ResultSet> future = daoContext.execute(nativeStatementWrapper);
        return new TypedMapIterator(asyncUtils.buildInterruptible(future).getImmediately().iterator());
    }
View Full Code Here


        final ListenableFuture<ResultSet> futureResultSet = daoContext.execute(nativeStatementWrapper);

        final Function<ResultSet, Iterator<TypedMap>> toTypedMap = new Function<ResultSet, Iterator<TypedMap>>() {
            @Override
            public Iterator<TypedMap> apply(ResultSet resultSet) {
                return new TypedMapIterator(resultSet.iterator());
            }
        };

        final ListenableFuture<Iterator<TypedMap>> futureTypedMapIterator = asyncUtils.transformFuture(futureResultSet, toTypedMap, executorService);
        return asyncUtils.buildInterruptible(futureTypedMapIterator);
View Full Code Here

TOP

Related Classes of info.archinnov.achilles.internal.persistence.operations.TypedMapIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.