Package cern.colt.map

Examples of cern.colt.map.OpenIntObjectHashMap


    }
  }

  @Override
  public SnapshotableSet<Long> makeSnapshot() {
    OpenIntObjectHashMap mapCopy = (OpenIntObjectHashMap) map.clone();
    ColtIntegerHashSet thisCopy = new ColtIntegerHashSet(mapCopy);

    return thisCopy;
  }
View Full Code Here


  @Override
  public SnapshotableSet<Long> create() {
    if (numberType == NumberType.INTEGER) {
      return new ColtIntegerHashSet(
        new OpenIntObjectHashMap(initialValue, minLoadFactor, maxLoadFactor)
      );
    } else if (numberType == NumberType.LONG) {
      return new ColtLongHashSet(
        new OpenLongObjectHashMap(initialValue, minLoadFactor, maxLoadFactor)
      );
View Full Code Here

    private final AbstractIntObjectMap counts;
    private long total;

    public IntegerLongFrequency() {
        counts = new OpenIntObjectHashMap();
        total = 0;
    }
View Full Code Here

        idAuthority.setIDBlockSizer(new SimpleVertexIDBlockSizer(baseBlockSize));

        renewTimeoutMS = config.getLong(IDS_RENEW_TIMEOUT_KEY,IDS_RENEW_TIMEOUT_DEFAULT);
        renewBufferPercentage = config.getDouble(IDS_RENEW_BUFFER_PERCENTAGE_KEY,IDS_RENEW_BUFFER_PERCENTAGE_DEFAULT);

        idPools = new OpenIntObjectHashMap();
        idPoolsLock = new ReentrantReadWriteLock();

        setLocalPartitions();
    }
View Full Code Here

TOP

Related Classes of cern.colt.map.OpenIntObjectHashMap

Copyright © 2018 www.massapicom. 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.