Examples of valueAt()


Examples of com.foundationdb.qp.row.ValuesHolderRow.valueAt()

            for(int i = 0 ; i < rowType.nFields(); ++i) {
                valueSource.getReady(rowType.typeAt(i));
                if (valueSource.isNull()) {
                    rowCopy.valueAt(i).putNull();
                } else {
                    rowType.typeAt(i).writeCanonical(valueSource, rowCopy.valueAt(i));
                }
            }
            return rowCopy;
        }
    }
View Full Code Here

Examples of com.foundationdb.qp.row.ValuesHolderRow.valueAt()

        try {
*/
            ValuesHolderRow row = new ValuesHolderRow(indexRowType);
            for (int i = 0; i < objs.length; i++) {
                Object obj = objs[i];
                Value value = row.valueAt(i);
                if (obj == null) {
                    value.putNull();
                } else if (obj instanceof Integer) {
                    if (ValueSources.underlyingType(value) == UnderlyingType.INT_64)
                        value.putInt64(((Integer) obj).longValue());
View Full Code Here

Examples of com.foundationdb.qp.row.ValuesHolderRow.valueAt()

                    context.checkQueryCancelation();
                    KeyState[] states = createKey(row, rowCount);
                    // Copy instead of hold as ProjectedRow cannot be held
                    ValuesHolderRow rowCopy = new ValuesHolderRow(row.rowType());
                    for(int i = 0 ; i < row.rowType().nFields(); ++i) {
                        ValueTargets.copyFrom(row.value(i), rowCopy.valueAt(i));
                    }
                    navigableMap.put(states, rowCopy);
                    loadTap.out();
                    loadTap.in();
                }
View Full Code Here

Examples of net.projecteuler.model.Tree.Row.valueAt()

      Row row = tree.getRow(index.getRow());
      for(int i = 100 - index.getRow(); i > 0; i-- )
        solution.print("   ");
      for (int col = 0; col < row.size(); col++) {
        if (col == index.getCol())
          solution.print(String.format("(%02d)", row.valueAt(col)));
        else
        solution.print(String.format(" %02d ", row.valueAt(col)));
        if (col < row.size() - 1)
          solution.print(" ");
      }
View Full Code Here

Examples of net.projecteuler.model.Tree.Row.valueAt()

        solution.print("   ");
      for (int col = 0; col < row.size(); col++) {
        if (col == index.getCol())
          solution.print(String.format("(%02d)", row.valueAt(col)));
        else
        solution.print(String.format(" %02d ", row.valueAt(col)));
        if (col < row.size() - 1)
          solution.print(" ");
      }
      solution.println(" => " + sum);
    }
View Full Code Here

Examples of org.apache.lucene.index.BinaryDocValues.valueAt()

            for (int j = 0; j < expected.length; j++) {
              expected[j] = leftValues.valueAt(j);
            }
            rightValues.setDocument(i);
            for (int j = 0; j < expected.length; j++) {
              assertEquals(info, expected[j], rightValues.valueAt(j));
            }
            assertEquals(info, expected.length, rightValues.count());
          }
        } else {
          assertNull(info, leftValues);
View Full Code Here

Examples of org.apache.lucene.index.NumericDocValues.valueAt()

            for (int j = 0; j < expected.length; j++) {
              expected[j] = leftValues.valueAt(j);
            }
            rightValues.setDocument(i);
            for (int j = 0; j < expected.length; j++) {
              assertEquals(info, expected[j], rightValues.valueAt(j));
            }
            assertEquals(info, expected.length, rightValues.count());
          }
        } else {
          assertNull(info, leftValues);
View Full Code Here

Examples of org.apache.lucene.index.SortedDocValues.valueAt()

            for (int j = 0; j < expected.length; j++) {
              expected[j] = leftValues.valueAt(j);
            }
            rightValues.setDocument(i);
            for (int j = 0; j < expected.length; j++) {
              assertEquals(info, expected[j], rightValues.valueAt(j));
            }
            assertEquals(info, expected.length, rightValues.count());
          }
        } else {
          assertNull(info, leftValues);
View Full Code Here

Examples of org.apache.lucene.index.SortedNumericDocValues.valueAt()

            for (int j = 0; j < expected.length; j++) {
              expected[j] = leftValues.valueAt(j);
            }
            rightValues.setDocument(i);
            for (int j = 0; j < expected.length; j++) {
              assertEquals(info, expected[j], rightValues.valueAt(j));
            }
            assertEquals(info, expected.length, rightValues.count());
          }
        } else {
          assertNull(info, leftValues);
View Full Code Here

Examples of org.apache.lucene.index.SortedNumericDocValues.valueAt()

    int maxDoc = reader.maxDoc();
    for (int i = 0; i < maxDoc; i++) {
      dv.setDocument(i);
      assertEquals(2, dv.count());
      int value = sortedValues[i].intValue();
      assertEquals("incorrect sorted-numeric DocValues for doc " + i, value, dv.valueAt(0));
      assertEquals("incorrect sorted-numeric DocValues for doc " + i, value + 1, dv.valueAt(1));
    }
  }
 
  @Test
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.