Examples of copy()


Examples of com.knowgate.dfs.FileSystem.copy()

    String sTargetDir =  sWorkAreasPut + getString(DB.gu_workarea) + sSep + "apps" + sSep + "Hipermail" + sSep + "html" + sSep + Gadgets.leftPad(String.valueOf(getInt(DB.pg_mailing)), '0', 5);

  try {
    FileSystem oFs = new FileSystem();
    oFs.mkdirs(sProtocol+sTargetDir);
    oFs.copy(sProtocol+sSourceDir, sProtocol+sTargetDir);
  } catch (Exception xcpt) {
    if (DebugFile.trace) {
      DebugFile.decIdent();
      DebugFile.writeln(xcpt.getClass().getName()+" "+xcpt.getMessage());
    }
View Full Code Here

Examples of com.linkedin.data.DataMap.copy()

        if ((tests & SCHEMA_VALIDATOR) != 0)
        {
          // validate using ValidateDataWithSchema
          VisitedTrackingValidator visitedValidator = new VisitedTrackingValidator(annotationValidator);
          ValidationOptions validationOptions = new ValidationOptions(RequiredMode.CAN_BE_ABSENT_IF_HAS_DEFAULT, CoercionMode.NORMAL);
          ValidationResult result = ValidateDataAgainstSchema.validate(value.copy(), schema, validationOptions, visitedValidator);
          checkValidationResult(value, result, row, visitedValidator);
        }

        if ((tests & OBJECT_VALIDATOR) != 0)
        {
View Full Code Here

Examples of com.lmax.disruptor.support.StubEntry.copy()

        assertEquals(-1L, ringBuffer.cursor());

        StubEntry expectedEntry = new StubEntry(2701);

        StubEntry oldEntry = ringBuffer.nextEntry();
        oldEntry.copy(expectedEntry);
        ringBuffer.commit(oldEntry);

        long sequence = consumerBarrier.waitFor(0);
        assertEquals(0, sequence);
View Full Code Here

Examples of com.mojang.minecraft.phys.AABB.copy()

            if(var18 * var18 + var13 * var13 >= var1 * var1 + var3 * var3) {
               var1 = var18;
               var2 = var17;
               var3 = var13;
               this.bb = var14.copy();
            } else {
               this.ySlideOffset = (float)((double)this.ySlideOffset + 0.5D);
            }
         }

View Full Code Here

Examples of com.mongodb.BasicDBObject.copy()

        final BasicDBObject doc = (BasicDBObject) ((DocBuilderField) getBoundUnit(Item.saveDoc)).getDBObject();

        new DbJob() {
            @Override
            public Object doRun() throws IOException {
                return col.save((DBObject) doc.copy());
            }

            @Override
            public String getNS() {
                return col.getFullName();
View Full Code Here

Examples of com.netflix.servo.tag.BasicTagList.copy()

            this.concrete = concrete;
            BasicTagList tagList = BasicTagList.of(
                    INTERFACE_TAG, ctype.getSimpleName(),
                    CLASS_TAG, concrete.getClass().getSimpleName());
            if (id != null) {
                tagList = tagList.copy(ID_TAG, id);
            }
            baseTagList = tagList;
            baseConfig = MonitorConfig.builder(TIMED_INTERFACE).withTags(baseTagList).build();

            timers = new HashMap<String, Timer>();
View Full Code Here

Examples of com.netflix.zeno.fastblob.record.SegmentedByteArray.copy()

                long pointer = populatedReverseKeys[i] >> 28;
                int length = VarInt.readVInt(arr, pointer);
                length += VarInt.sizeOfVInt(length);

                if(currentCopyPointer != pointer)
                    arr.copy(arr, pointer, currentCopyPointer, length);

                populatedReverseKeys[i] = populatedReverseKeys[i] << 36 | currentCopyPointer;

                currentCopyPointer += length;
            } else {
View Full Code Here

Examples of com.numb3r3.common.math.Matrix.copy()

    @Override
    public Matrix rdiv(Matrix m) {
        Matrix copy = new InMemoryJBlasMatrix(this.getRowsNum(),
                this.getColumnsNum());
        copy.copy(this);
        if (this.getRowsNum() == m.getRowsNum() && m.getColumnsNum() == 1) {
            for (int i = 0; i < this.getRowsNum(); i++) {
                for (int j = 0; j < this.getColumnsNum(); j++) {
                    assert m.get(i, 0) == 0.0;
                    copy.put(i, j, copy.get(i, j) / m.get(i, 0));
View Full Code Here

Examples of com.opengamma.engine.value.ValueProperties.copy()

    }
    if (common == null) {
      // Can't have been any inputs ... ?
      return null;
    }
    common = common.copy().withoutAny(ValuePropertyNames.FUNCTION).with(ValuePropertyNames.FUNCTION, getUniqueId()).get();
    return Collections.singleton(new ValueSpecification(_requirementName, target.toSpecification(), common));
  }

  @Override
  public Set<ComputedValue> execute(final FunctionExecutionContext executionContext, final FunctionInputs inputs, final ComputationTarget target, final Set<ValueRequirement> desiredValues) {
View Full Code Here

Examples of com.opengamma.engine.view.execution.ViewCycleExecutionOptions.copy()

            snapshotManager.initialiseSnapshotWithSubscriptionResults();
          } else {
            snapshotManager.initialiseSnapshot();
          }
          if (executionOptions.getValuationTime() == null) {
            executionOptions = executionOptions.copy().setValuationTime(snapshotManager.getSnapshotTime()).create();
          }
        } catch (final Exception e) {
          s_logger.error("Error initializing snapshot {}", snapshotManager);
          cycleExecutionFailed(executionOptions, new OpenGammaRuntimeException("Error initializing snapshot " + snapshotManager, e));
        }
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.