Examples of cursor()


Examples of com.facebook.presto.spi.block.Block.cursor()

        // create the block builder for the new boolean column
        // we know the exact size required for the block
        BlockBuilder blockBuilder = BOOLEAN.createFixedSizeBlockBuilder(page.getPositionCount());

        Block probeJoinBlock = page.getBlock(probeJoinChannel);
        BlockCursor probeJoinCursor = probeJoinBlock.cursor();

        // update hashing strategy to use probe cursor
        channelSet.setCurrentValue(probeJoinCursor);

        for (int position = 0; position < page.getPositionCount(); position++) {
View Full Code Here

Examples of com.facebook.presto.spi.block.Block.cursor()

        assertEquals(output.getChannelCount(), 1);

        Block block = output.getBlock(0);
        assertEquals(block.getPositionCount(), 1);

        BlockCursor cursor = block.cursor();
        assertTrue(cursor.advanceNextPosition());
        if (cursor.isNull()) {
            return null;
        }
        else {
View Full Code Here

Examples of com.facebook.presto.spi.block.RandomAccessBlock.cursor()

                    }
                }

                // check equality of every position against every other position in the block cursor
                for (RandomAccessBlock rightBlock : channel) {
                    BlockCursor rightCursor = rightBlock.cursor();
                    BlockCursor[] rightCursors = new BlockCursor[]{rightCursor};
                    while (rightCursor.advanceNextPosition()) {
                        assertEquals(
                                hashStrategy.positionEqualsCursors(leftBlockIndex, leftBlockPosition, rightCursors),
                                leftBlock.equalTo(leftBlockPosition, rightCursor));
View Full Code Here

Examples of com.foundationdb.qp.loadableplan.DirectObjectPlan.cursor()

        if (multiple)
            queryBindings.setValue(2, new Value(MNumeric.INT.instance(false), 10));
        if (commitFreq > 0)
            queryBindings.setValue(3, new Value(MNumeric.INT.instance(false), commitFreq));

        DirectObjectCursor cursor = plan.cursor(queryContext, queryBindings);
       
        StringBuilder actual = new StringBuilder();

        cursor.open();
        while(true) {
View Full Code Here

Examples of com.google.appengine.api.datastore.FetchOptions.cursor()

    // If we have a cursor, add it to the fetch options
    if (cursor != null) {
      if (opts == null) {
        opts = withCursor(cursor);
      } else {
        opts.cursor(cursor);
      }
    }
    return opts;
  }
View Full Code Here

Examples of com.google.appengine.api.datastore.FetchOptions.cursor()

    // If we have a cursor, add it to the fetch options
    if (cursor != null) {
      if (opts == null) {
        opts = withCursor(cursor);
      } else {
        opts.cursor(cursor);
      }
    }
    return opts;
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.index.OIndex.cursor()

          final long total = index.getSize();
          index.clear();
          return total;
        } else {
          // RETURNS ALL THE DELETED RECORDS
          OIndexCursor cursor = index.cursor();
          Map.Entry<Object, OIdentifiable> entry;

          while ((entry=cursor.nextEntry()) != null) {
            OIdentifiable rec = entry.getValue();
            rec = rec.getRecord();
View Full Code Here

Examples of com.orientechnologies.orient.core.index.OIndex.cursor()

    for (Object in:indices){
      OIndex i = (OIndex)in;
      if (indicesName.contains(i.getName())){
        //migrate the index
        Logger.info("....." + i.getName());
        OIndexCursor cursor = i.cursor();
        Set<Entry<Object, OIdentifiable>> entries = cursor.toEntries();
        Iterator<Entry<Object, OIdentifiable>> it = entries.iterator();
        while (it.hasNext()){
          Entry<Object, OIdentifiable> entry = it.next();
          String key = (String) entry.getKey();
View Full Code Here

Examples of com.sleepycat.db.internal.Db.cursor()

                System.arraycopy(bytes, 0, cursorBytes, 0, bytes.length);
                cursorKey.setUserBuffer(ulen, true);
                cursorData.setPartial(true);

                cursor = blocks.cursor(txn, flags);

                if (cursor.get(cursorKey, cursorData,
                               DbConstants.DB_SET_RANGE | flags) != DbConstants.DB_NOTFOUND)
                {
                    cursor.del(0);
View Full Code Here

Examples of com.sleepycat.db.internal.Db.cursor()

                System.arraycopy(bytes, 0, cursorBytes, 0, bytes.length);
                cursorKey.setUserBuffer(ulen, true);
                cursorData.setPartial(true);

                cursor = blocks.cursor(txn, flags);

                if (cursor.get(cursorKey, cursorData,
                               DbConstants.DB_SET_RANGE | flags) != DbConstants.DB_NOTFOUND)
                {
                    cursor.del(0);
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.