Examples of iterate()


Examples of org.hibernate.search.FullTextQuery.iterate()

  private void assertTimeoutOccursOnIterate() {
    FullTextQuery hibernateQuery = fts.createFullTextQuery( allSwatchClocksQuery, Clock.class );
    hibernateQuery.setTimeout( 10, TimeUnit.MICROSECONDS );

    try {
      hibernateQuery.iterate();
      fail( "timeout exception should happen" );
    }
    catch (QueryTimeoutException e) {
      //good
    }
View Full Code Here

Examples of org.jacorb.orb.portableInterceptor.ClientInterceptorIterator.iterate()

        ClientInterceptorIterator intercept_iter =
            orb.getInterceptorManager().getClientIterator();

        try
        {
            intercept_iter.iterate( info, op );
        }
        catch ( org.omg.PortableInterceptor.ForwardRequest fwd )
        {
            rebind(fwd.forward);
            throw new RemarshalException();
View Full Code Here

Examples of org.jacorb.orb.portableInterceptor.ServerInterceptorIterator.iterate()

                ServerInterceptorIterator intercept_iter =
                    orb.getInterceptorManager().getServerIterator();

                try
                {
                    intercept_iter.iterate(info, ServerInterceptorIterator.RECEIVE_REQUEST);
                }
                catch (ForwardRequest e)
                {
                    setLocationForward(new org.omg.PortableServer.ForwardRequest(e.forward));
                }
View Full Code Here

Examples of org.pdf4j.saxon.event.SequenceOutputter.iterate()

            pipe.setHostLanguage(getHostLanguage());
            seq.setPipelineConfiguration(pipe);
            c2.setTemporaryReceiver(seq);
            process(c2);
            seq.close();
            return seq.iterate();
        }
    }

    /**
     * Evaluate an expression as a String. This function must only be called in contexts
View Full Code Here

Examples of org.pdf4j.saxon.expr.Expression.iterate()

        exp = visitor.typeCheck(exp, Type.ITEM_TYPE);
        SlotManager map = staticContext.getConfiguration().makeSlotManager();
        ExpressionTool.allocateSlots(exp, 0, map);
        XPathContextMajor context = new XPathContextMajor(contextNode, staticContext.getExecutable());
        context.openStackFrame(map);
        SequenceIterator iterator = exp.iterate(context);
        ArrayList list = new ArrayList(20);
        while (true) {
            Item item = iterator.next();
            if (item == null) {
                return list;
View Full Code Here

Examples of org.pdf4j.saxon.value.Value.iterate()

        if (operand instanceof Literal) {
            Value val = ((Literal)operand).getValue();
            if (val instanceof AtomicValue) {
                return operand;
            }
            SequenceIterator iter = val.iterate();
            while (true) {
                // if all items in the sequence are atomic (they generally will be, since this is
                // done at compile time), then return the sequence
                Item i = iter.next();
                if (i == null) {
View Full Code Here

Examples of org.rocksdb.WriteBatch.iterate()

            }
        }

        // attempt to read test data back from the WriteBatch by iterating with a handler
        final CapturingWriteBatchHandler handler = new CapturingWriteBatchHandler();
        batch.iterate(handler);

        // compare the results to the test data
        final List<Tuple<Action, Tuple<byte[], byte[]>>> actualEvents = handler.getEvents();
        assertThat(testEvents.size()).isSameAs(actualEvents.size());
View Full Code Here

Examples of org.springframework.batch.repeat.support.RepeatTemplate.iterate()

            @Override
      public void before(RepeatContext context) {
        calls.add("2");
      }
    } });
    template.iterate(new RepeatCallback() {
            @Override
      public RepeatStatus doInIteration(RepeatContext context) throws Exception {
        count++;
        return RepeatStatus.continueIf(count <= 1);
      }
View Full Code Here

Examples of org.springframework.batch.repeat.support.TaskExecutorRepeatTemplate.iterate()

        calls.add("2");
        fails.add("2");
      }
    } });
    try {
      template.iterate(new RepeatCallback() {
                @Override
        public RepeatStatus doInIteration(RepeatContext context) throws Exception {
          throw new IllegalStateException("Bogus");
        }
      });
View Full Code Here

Examples of org.tmatesoft.hg.internal.FileHistory.iterate()

    FileHistory fileHistory = new FileHistory(df, clogRevIndexStart, clogRevIndexEnd);
    fileHistory.build();
    int cacheHint = 5; // cache comes useful when we follow merge branches and don't want to
    // parse base revision twice. There's no easy way to determine max(distance(all(base,merge))),
    // hence the heuristics to use the longest history chunk:
    for (FileRevisionHistoryChunk c : fileHistory.iterate(OldToNew)) {
      // iteration order is not important here
      if (c.revisionCount() > cacheHint) {
        cacheHint = c.revisionCount();
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.