Examples of clone()


Examples of org.apache.directory.studio.ldapbrowser.core.model.ISearch.clone()

    private void setSearchResultEditorWidgetInput( SearchResultEditorInput srei )
    {
        // clone search, search results, entries
        ISearch search = srei.getSearch();
        workingCopy = search != null ? ( ISearch ) search.clone() : search;
        if ( search != null && search.getSearchResults() != null )
        {
            ISearchResult[] searchResults = search.getSearchResults();
            ISearchResult[] clonedSearchResults = new ISearchResult[searchResults.length];
            for ( int i = 0; i < searchResults.length; i++ )
View Full Code Here

Examples of org.apache.excalibur.source.SourceParameters.clone()

            }
            if (parameters != null) {
                parameters = (SourceParameters)parameters.clone();
                parameters.add(authSaveResourceParameters);
            } else if (authSaveResourceParameters != null) {
                parameters = (SourceParameters)authSaveResourceParameters.clone();
            }
            parameters = this.createParameters(parameters,
                                               path,
                                               false);
            SourceUtil.writeDOM(authSaveResource,
View Full Code Here

Examples of org.apache.felix.scrplugin.description.ClassDescription.clone()

            }

            // and cache
            allDescriptions.put(name, result);
        }
        return result.clone();
    }

    /**
     * Returns a map of component descriptors which may be extended by the java
     * sources.
 
View Full Code Here

Examples of org.apache.felix.sigil.common.core.internal.model.osgi.PackageImport.clone()

        baz.setPackageName("baz");
        baz.setVersions(VersionRange.parseVersionRange("[3.0.0, 4.0.0)"));

        element.addChild(foo.clone());
        element.addChild(bar.clone());
        element.addChild(baz.clone());

        assertTrue(Arrays.asList(element.children()).contains(foo));
        assertTrue(Arrays.asList(element.children()).contains(bar));
        assertTrue(Arrays.asList(element.children()).contains(baz));
    }
View Full Code Here

Examples of org.apache.felix.sigil.common.core.internal.model.osgi.RequiredBundle.clone()

        baz.setSymbolicName("baz");
        baz.setVersions(VersionRange.parseVersionRange("[3.0.0, 4.0.0)"));

        element.addChild(foo.clone());
        element.addChild(bar.clone());
        element.addChild(baz.clone());

        assertTrue(Arrays.asList(element.children()).contains(foo));
        assertTrue(Arrays.asList(element.children()).contains(bar));
        assertTrue(Arrays.asList(element.children()).contains(baz));
    }
View Full Code Here

Examples of org.apache.flink.compiler.dataproperties.InterestingProperties.clone()

    // if no other properties exist, add the pruned trivials back
    if (props.getGlobalProperties().isEmpty()) {
      props.addGlobalProperties(new RequestedGlobalProperties());
    }
    props.addLocalProperties(new RequestedLocalProperties());
    this.input1.setInterestingProperties(props.clone());
    this.input2.setInterestingProperties(props.clone());
   
    this.channelProps = props.getGlobalProperties();
  }
 
View Full Code Here

Examples of org.apache.flink.compiler.plan.Channel.clone()

          // be ANY_PARTITIONING on fields (0) and one channel is range partitioned on that field, the other is hash
          // partitioned on that field.
          if (!igps.isTrivial() && !(p1.equals(p2))) {
            if (c1.getShipStrategy() == ShipStrategyType.FORWARD && c2.getShipStrategy() != ShipStrategyType.FORWARD) {
              // adjust c2 to c1
              c2 = c2.clone();
              p1.parameterizeChannel(c2,dopChange2);
            } else if (c2.getShipStrategy() == ShipStrategyType.FORWARD && c1.getShipStrategy() != ShipStrategyType.FORWARD) {
              // adjust c1 to c2
              c1 = c1.clone();
              p2.parameterizeChannel(c1,dopChange1);
View Full Code Here

Examples of org.apache.gora.examples.generated.Employee.clone()

    MemStore<String, Employee> store = DataStoreFactory.getDataStore(
        MemStore.class, String.class, Employee.class, new Configuration());

    Employee employee = DataStoreTestUtil.createEmployee(store);
   
    Assert.assertEquals(employee, employee.clone());
  }
}
View Full Code Here

Examples of org.apache.hadoop.hbase.KeyValue.clone()

    final KeyValue kv1 = new KeyValue(one, f, q, v);
    final KeyValue kv2 = new KeyValue(two, f, q, v);

    // use case 1: both kvs in kvset
    this.memstore.add(kv1.clone());
    this.memstore.add(kv2.clone());
    verifyScanAcrossSnapshot2(kv1, kv2);

    // use case 2: both kvs in snapshot
    this.memstore.snapshot();
    verifyScanAcrossSnapshot2(kv1, kv2);
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.idx.support.sets.IntSet.clone()

      IntSet currentTail = IntSetBuilder.newEmptyIntSet(numKeyValues);
      for (int i = indexSize - 1; i >= 0; i--) {
        currentTail = currentTail.unite(valueStore[i]);
        if (i % interval == 0) {
          tails[i / interval] = currentTail;
          currentTail = currentTail.clone();
        }
      }

      IntSet[] heads = new IntSet[precalcSize];
      IntSet currentHead = IntSetBuilder.newEmptyIntSet(numKeyValues);
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.