Examples of skip()


Examples of com.gotometrics.orderly.StructIterator.skip()

            throw new MalformedQueryException("field [" + fieldName + "] is not part of the index");
        }

        // skip all fields up to fieldPosition
        for (int i = 0; i < fieldPosition; i++) {
            iterator.skip();
        }

        // return the requested field
        return iterator.next();
    }
View Full Code Here

Examples of com.mobixess.jodb.core.io.IRandomAccessDataBuffer.skip()

                }
                spaceToReserve+=slotMasksTotal;
                if(transactionFile.getCursorOffset() + spaceToReserve > transactionFile.length()  ){
                    transactionFile.setLength(transactionFile.getCursorOffset() + spaceToReserve );
                }
                transactionFile.skip(spaceToReserve);
               
            }
        }
       
        if(JODBConfig.DEBUG){
View Full Code Here

Examples of com.mongodb.DBCursor.skip()

      cursor.sort( query.getOrderBy() );
    }

    // apply firstRow/maxRows if present
    if ( queryParameters.getRowSelection().getFirstRow() != null ) {
      cursor.skip( queryParameters.getRowSelection().getFirstRow() );
    }

    if ( queryParameters.getRowSelection().getMaxRows() != null ) {
      cursor.limit( queryParameters.getRowSelection().getMaxRows() );
    }
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.serializer.record.binary.BytesContainer.skip()

  }

  @Test
  public void testReadSimple() {
    BytesContainer bytesContainer = new BytesContainer();
    bytesContainer.skip((short) 100);
    assertEquals(bytesContainer.offset, 100);
  }

}
View Full Code Here

Examples of com.peterhi.obsolete.Data.skip()

      boolean b = data.read2();
      assertEquals(1, data.debug_GetRead());
      assertEquals(true, a);
      assertEquals(true, b);
      assertEquals(7, data.readable());
      data.skip(7);
      assertEquals(0, data.readable());
    } finally {
    }
  }
 
View Full Code Here

Examples of com.peterhi.obsolete.Stream.skip()

      Stream stream = new Stream();
      stream.write(1);
      stream.writeBit(1);
      byte[] sample = new byte[0];
      assertEquals(0, stream.read(sample));
      stream.skip(1);
      assertEquals(0, stream.read(sample));
      assertEquals(1, stream.readBit());
      assertEquals(-1, stream.read(sample));
      assertEquals(0, stream.getData().readable());
    } finally {
View Full Code Here

Examples of com.peterhi.runtime.Buffer.skip()

      assertEquals(2, existingDataOffsetLengthBitsNotAligned.size());
      assertEquals(14, existingDataOffsetLengthBitsNotAligned.readable());
      assertEquals(14, existingDataOffsetLengthBitsNotAligned.written());
      assertEquals(2, existingDataOffsetLengthBitsNotAligned.writable());
      assertEquals(0, existingDataOffsetLengthBitsNotAligned.read());
      existingDataOffsetLengthBitsNotAligned.skip(3);
      assertEquals(1, existingDataOffsetLengthBitsNotAligned.read());
      existingDataOffsetLengthBitsNotAligned.skip(9);
      assertEquals(-1, existingDataOffsetLengthBitsNotAligned.read());
    }
   
View Full Code Here

Examples of com.sleepycat.je.dbi.CursorImpl.skip()

            checkTxnState();
            while (true) {
                final CursorImpl dup = beginMoveCursor(true);
                boolean success = false;
                try {
                    final long count = dup.skip(forward, maxCount,
                                                null /*rangeConstraint*/);
                    if (count <= 0) {
                        return 0;
                    }
                    final OperationStatus status =
View Full Code Here

Examples of com.slytechs.capture.file.editor.BasicRecordIterator.skip()

      if (iterator.hasNext() == false) {
        throw new IllegalStateException(
            "Not enough records in loader, expected upto " + length);
      }

      iterator.skip();
    }

    this.positions = new SoftReference<long[]>(positions);

//    logger.info("fetched: [" + positions[0] + "-" + (positions[length - 1])
View Full Code Here

Examples of com.starlight.io.PositionTrackingInputStream.skip()

       
        int line = 0;
       
        // If we're skipping some data, do it now
        if ( starting_position > 0 ) {
          long actual = in.skip( starting_position );
         
          // If we weren't able to skip the desired number of bytes, we'll need
          // to do a full index because we don't know what line we're at.
          if ( actual != starting_position ) {
            // If mark is support, we can just reset to the beginning and
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.