Examples of copyFrom()


Examples of com.asakusafw.compiler.fileio.model.Ex1.copyFrom()

                SequenceFile.Reader reader = new SequenceFile.Reader(fs, status.getPath(), tester.configuration());
                try {
                    Ex1 model = new Ex1();
                    while (reader.next(NullWritable.get(), model)) {
                        Ex1 copy = new Ex1();
                        copy.copyFrom(model);
                        results.add(copy);
                    }
                } finally {
                    reader.close();
                }
View Full Code Here

Examples of com.asakusafw.compiler.flow.testing.model.Ex1.copyFrom()

    static class Ex1Copier extends MockResult<Ex1> {
        @Override
        protected Ex1 bless(Ex1 result) {
            Ex1 copy = new Ex1();
            copy.copyFrom(result);
            return copy;
        }
    }
}
View Full Code Here

Examples of com.asakusafw.runtime.value.ValueOption.copyFrom()

        ValueOption<?> object = (ValueOption<?>) o;
        if (object == null || object.isNull()) {
            return null;
        }
        ValueOption copy = newObject();
        copy.copyFrom(object);
        return copy;
    }

    /**
     * Creates a new instance for supported {@link ValueOption} type.
View Full Code Here

Examples of com.caucho.server.dispatch.Invocation.copyFrom()

 
  public Invocation getAsyncInvocation()
  {
    if (_asyncInvocation == null) {
      Invocation invocation = new Invocation();
      invocation.copyFrom(_dispatchInvocation);
     
      FilterChain chain = invocation.getFilterChain();
      chain = new ResumeFilterChain(chain, invocation.getWebApp());
     
      invocation.setFilterChain(chain);
View Full Code Here

Examples of com.foundationdb.qp.row.HKey.copyFrom()

        HKey hkey = context.getStore().newHKey(rowType.hKey());
        Key key = context.getStore().createKey();
        byte decodedBytes[] = RowIndexer.decodeString(encoded);
        key.setEncodedSize(decodedBytes.length);
        System.arraycopy(decodedBytes, 0, key.getEncodedBytes(), 0, decodedBytes.length);
        hkey.copyFrom(key);
        return (Row)(ValuesHKey)hkey;
    }

}
View Full Code Here

Examples of com.foundationdb.qp.row.IndexRow.copyFrom()

    public Row row() {
        assert (storeData.rawKey != null) : "Called for chopped key (or before iterating)"; // See advanceLogical() for former
        IndexRow row = adapter.takeIndexRow(rowType);
        // updateKey() called from advance
        updateValue();
        row.copyFrom(storeData.persistitKey, storeData.persistitValue);
        return row;
    }

    @Override
    public void openIteration() {
View Full Code Here

Examples of com.foundationdb.qp.storeadapter.indexrow.PersistitIndexRow.copyFrom()

{
    @Override
    public Row row()
    {
        PersistitIndexRow row = (PersistitIndexRow)adapter.takeIndexRow(indexRowType);
        row.copyFrom(exchange);
        return row;
    }

    @Override
    public void openIteration()
View Full Code Here

Examples of com.google.gwt.dev.MinimalRebuildCache.copyFrom()

    job.setCompileStrategy(knownGoodMinimalRebuildCache.isPopulated() ? CompileStrategy.INCREMENTAL
        : CompileStrategy.FULL);

    // Takes care to transactionally replace the saved cache only after a successful compile.
    MinimalRebuildCache mutableMinimalRebuildCache = new MinimalRebuildCache();
    mutableMinimalRebuildCache.copyFrom(knownGoodMinimalRebuildCache);
    boolean success =
        new Compiler(runOptions, mutableMinimalRebuildCache).run(compileLogger, module);
    if (success) {
      publishedCompileDir = compileDir;
      lastBuildInput = input;
View Full Code Here

Examples of com.google.uzaygezen.core.BitVector.copyFrom()

      BigInteger endBigInteger = indexRange.getIndexRange().getEnd();
      final Scan scan;
      if (endBigInteger.testBit(spec.sumBitsPerDimension())) {
        scan = new Scan(start.toBigEndianByteArray());
      } else {
        end.copyFrom(endBigInteger);
        scan = new Scan(start.toBigEndianByteArray(), end.toBigEndianByteArray());
      }
      scans[i] = scan;
    }
    BitVector[] point = new BitVector[spec.getBitsPerDimension().size()];
View Full Code Here

Examples of com.google.visualization.datasource.query.Query.copyFrom()

   *
   * @return The split query.
   */
  private static QueryPair splitAll(Query query) {
    Query dataSourceQuery = new Query();
    dataSourceQuery.copyFrom(query);
    Query completionQuery = new Query();
    return new QueryPair(dataSourceQuery, completionQuery);
  }

  /**
 
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.