Examples of valueAt()


Examples of codec.x501.Attribute.valueAt()

      }
      if (attribute.valueCount() == 0) {
    throw new InvalidAttributeException(
      "ContentType attribute has no OID!");
      }
      if (!oid.equals(attribute.valueAt(0))) {
    throw new InvalidAttributeException(
      "ContentType attribute mismatch!");
      }
      attribute = info_.authenticatedAttributes().getAttribute(
        MESSAGE_DIGEST);
View Full Code Here

Examples of codec.x501.Attribute.valueAt()

      }
      if (attribute.valueCount() == 0) {
    throw new InvalidAttributeException(
      "MessageDigest attribute has no data!");
      }
      octets = (ASN1OctetString) attribute.valueAt(0);
      md_ = octets.getByteArray();
      mdalg = JCA.getName(JCA.getDigestOID(sigalg));

      if (mdalg == null) {
    throw new NoSuchAlgorithmException(
View Full Code Here

Examples of codec.x501.Attribute.valueAt()

    attributes.add(attribute);
      } else if (attribute.valueCount() < 1) {
    throw new InvalidAttributeException(
      "Content type attribute has no value!");
      } else if (!attribute.valueAt(0).equals(oid)) {
    throw new InvalidAttributeException(
      "Content type attribute has wrong value!");
      }
      attribute = info_.authenticatedAttributes().getAttribute(
        MESSAGE_DIGEST);
View Full Code Here

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

    // Do random accesses instead of sequential. Nearby random accesses are potentially faster.
    private void runRandom(int runs, int sequentialAccessesPerRandom, String label)
    {
        ValuesHolderRow boundRow = new ValuesHolderRow(idxRowType);
        Value valueHolder = boundRow.valueAt(0);
        queryBindings.setRow(0, boundRow);
        IndexBound bound = new IndexBound(boundRow, new SetColumnSelector(0));
        IndexKeyRange keyRange = IndexKeyRange.bounded(idxRowType, bound, true, bound, true);
        Ordering ordering = new Ordering();
        ordering.append(field(idxRowType, 0), true);
View Full Code Here

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

        @Override
        public Row next() {
            Row inputRow = input.next();
            if(inputRow != null) {
                ValuesHolderRow counterRow = new ValuesHolderRow(bufferRowType.first());
                counterRow.valueAt(0).putInt64(counter++);
                inputRow = new CompoundRow(bufferRowType, counterRow, inputRow);
            }
            return inputRow;
        }
    }
View Full Code Here

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

        }

        private Row createOutput() {
            ValuesHolderRow outputRow = newOutputRow();
            for(int i = 0; i < inputsIndex; ++i) {
                Value value = outputRow.valueAt(i);
                Value key = keyValues.get(i);
                ValueTargets.copyFrom(key, value);
            }
            for (int i = inputsIndex; i < inputRowType.nFields(); ++i) {
                Value value = outputRow.valueAt(i);
View Full Code Here

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

                Value value = outputRow.valueAt(i);
                Value key = keyValues.get(i);
                ValueTargets.copyFrom(key, value);
            }
            for (int i = inputsIndex; i < inputRowType.nFields(); ++i) {
                Value value = outputRow.valueAt(i);
                int aggregatorIndex = i - inputsIndex;
                Value aggregatorState = pAggrsStates.get(aggregatorIndex);
                if (aggregatorState.hasAnyValue())
                    ValueTargets.copyFrom(aggregatorState, value);
                else
View Full Code Here

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

        private Row createEmptyOutput() {
            assert noGroupBy() : "shouldn't be creating null output row when I have a grouping";
            ValuesHolderRow outputRow = newOutputRow();
            for (int i = 0; i < outputRow.rowType().nFields(); ++i) {
                pAggrs.get(i).emptyValue(outputRow.valueAt(i));
            }
            return outputRow;
        }

        private boolean noGroupBy() {
View Full Code Here

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

                outerJoinRowColumnEvaluation.with(context);
                outerJoinRowColumnEvaluation.with(bindings);
                outerJoinRowColumnEvaluation.evaluate();
                ValueTargets.copyFrom(
                        outerJoinRowColumnEvaluation.resultValue(),
                        valuesHolderRow.valueAt(i));
            }
            return valuesHolderRow;
        }

        // Object state
View Full Code Here

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

            ValuesHolderRow rowCopy = new ValuesHolderRow(rowType);
            valueSource.attach(key.rowValue);
            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
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.