Examples of advance()


Examples of gnu.trove.iterator.TShortObjectIterator.advance()

            return false;
        }
        try {
            TShortObjectIterator iter = this.iterator();
            while ( iter.hasNext() ) {
                iter.advance();
                short key = iter.key();
                Object value = iter.value();
                if ( value == null ) {
                    if ( !( that.get( key ) == null && that.containsKey( key ) ) ) {
                        return false;
View Full Code Here

Examples of htsjdk.samtools.SecondaryOrSupplementarySkippingIterator.advance()

            }
            // Advance the right iterator until it is >= the left reads that have just been grabbed
            while (itRight.hasCurrent() && compareAlignmentCoordinates(left, itRight.getCurrent()) > 0) {
                final SAMRecord right = itRight.getCurrent();
                rightUnmatched.put(right.getReadName(), right);
                itRight.advance();
            }
            // For each right read that has the same coordinate as the current left reads,
            // see if there is a matching left read.  If so, process and discard.  If not,
            // save the right read for later.
            for (;itRight.hasCurrent() && compareAlignmentCoordinates(left, itRight.getCurrent()) == 0; itRight.advance()) {
View Full Code Here

Examples of ideah.lexer.HaskellLexer.advance()

            if (!HaskellTokenTypes.WHITESPACES.contains(type)) {
                TextRange textRange = new TextRange(lexer.getTokenStart(), lexer.getTokenEnd());
                IRange range = new MyRange(textRange);
                ranges.put(range.getStart(), new Filler(range, type, lexer.getTokenText()));
            }
            lexer.advance();
        }
        moduleTree.buildBlocks(ranges, factory);

        return moduleTree;
    }
View Full Code Here

Examples of io.druid.segment.Cursor.advance()

        aggregateDimValue(positions, theAggregators, numProcessed, resultsBuf, numBytesPerRecord, aggregatorOffsets, aggSize, aggExtra, dimValues.get(i+4));
        aggregateDimValue(positions, theAggregators, numProcessed, resultsBuf, numBytesPerRecord, aggregatorOffsets, aggSize, aggExtra, dimValues.get(i+5));
        aggregateDimValue(positions, theAggregators, numProcessed, resultsBuf, numBytesPerRecord, aggregatorOffsets, aggSize, aggExtra, dimValues.get(i+6));
        aggregateDimValue(positions, theAggregators, numProcessed, resultsBuf, numBytesPerRecord, aggregatorOffsets, aggSize, aggExtra, dimValues.get(i+7));
      }
      cursor.advance();
    }
  }

  private static void aggregateDimValue(
      final int[] positions,
View Full Code Here

Examples of org.apache.aurora.scheduler.testing.FakeScheduledExecutor.advance()

            Amount.of(1L, Time.MILLISECONDS),
            Amount.of(1L, Time.MILLISECONDS),
            1));

    pruner.execute();
    executorClock.advance(Amount.of(2L, Time.MILLISECONDS));
    executorClock.advance(Amount.of(1L, Time.MILLISECONDS));
  }
}
View Full Code Here

Examples of org.apache.catalina.util.StringParser.advance()

            int start = parser.getIndex();
            if (start >= length)
                break;
            int end = parser.findChar(',');
            String entry = parser.extract(start, end).trim();
            parser.advance();   // For the following entry

            // Extract the quality factor for this entry
            double quality = 1.0;
            int semi = entry.indexOf(";q=");
            if (semi >= 0) {
View Full Code Here

Examples of org.apache.commons.math.util.OpenIntToDoubleHashMap.Iterator.advance()

    @Override
    public double[] getData() {
        double[] res = new double[virtualSize];
        Iterator iter = entries.iterator();
        while (iter.hasNext()) {
            iter.advance();
            res[iter.key()] = iter.value();
        }
        return res;
    }
View Full Code Here

Examples of org.apache.commons.math3.util.OpenIntToDoubleHashMap.Iterator.advance()

        boolean copyThis = entries.size() > v.entries.size();
        OpenMapRealVector res = copyThis ? this.copy() : v.copy();
        Iterator iter = copyThis ? v.entries.iterator() : entries.iterator();
        OpenIntToDoubleHashMap randomAccess = copyThis ? entries : v.entries;
        while (iter.hasNext()) {
            iter.advance();
            int key = iter.key();
            if (randomAccess.containsKey(key)) {
                res.setEntry(key, randomAccess.get(key) + iter.value());
            } else {
                res.setEntry(key, iter.value());
View Full Code Here

Examples of org.apache.hadoop.hbase.CellScanner.advance()

  }

  public static void verifyRowFromMap(ImmutableBytesWritable key, Result result) throws IOException {
    byte[] row = key.get();
    CellScanner scanner = result.cellScanner();
    while (scanner.advance()) {
      Cell cell = scanner.current();

      //assert that all Cells in the Result have the same key
     Assert.assertEquals(0, Bytes.compareTo(row, 0, row.length,
         cell.getRowArray(), cell.getRowOffset(), cell.getRowLength()));
View Full Code Here

Examples of org.apache.hadoop.hbase.codec.Codec.Decoder.advance()

    encoder.write(createKV(0));
    encoder.write(createKV(2));

    InputStream is = new ByteArrayInputStream(bos.toByteArray());
    Decoder decoder = codec.getDecoder(is);
    decoder.advance();
    KeyValue kv = (KeyValue) decoder.current();
    List<Tag> tags = kv.getTags();
    assertEquals(1, tags.size());
    assertEquals("tagValue1", Bytes.toString(tags.get(0).getValue()));
    decoder.advance();
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.