Examples of OpenIntObjectHashMap


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

Examples of cern.colt.map.OpenIntObjectHashMap

  @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

Examples of cern.colt.map.OpenIntObjectHashMap

    private final AbstractIntObjectMap counts;
    private long total;

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

Examples of cern.colt.map.OpenIntObjectHashMap

        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

Examples of org.apache.mahout.math.map.OpenIntObjectHashMap

   * they are not updated as the tree is modified.
   */
  public FPTree(LongArrayList attrCountList, long minSupport) {
    this.root = new FPNode(null, -1, 0);
    this.attrCountList = attrCountList;
    this.attrNodeLists = new OpenIntObjectHashMap();
    this.minSupport = minSupport;
  }
View Full Code Here

Examples of org.apache.mahout.math.map.OpenIntObjectHashMap

        if (attrCountList.size() < (i+1)) {
          attrCountList.setSize(i+1);
        }
        attrCountList.set(i, attrCounts[i]);
      }
    this.attrNodeLists = new OpenIntObjectHashMap();
    this.minSupport = minSupport;
  }
View Full Code Here

Examples of org.apache.mahout.math.map.OpenIntObjectHashMap

    private FPNode(FPNode parent, int attribute, long count) {
      this.parent = parent;
      this.attribute = attribute;
      this.count = count;
      this.childMap = new OpenIntObjectHashMap();
    }
View Full Code Here

Examples of org.apache.mahout.math.map.OpenIntObjectHashMap

   * they are not updated as the tree is modified.
   */
  public FPTree(LongArrayList attrCountList, long minSupport) {
    this.root = new FPNode(null, -1, 0);
    this.attrCountList = attrCountList;
    this.attrNodeLists = new OpenIntObjectHashMap();
    this.minSupport = minSupport;
  }
View Full Code Here

Examples of org.apache.mahout.math.map.OpenIntObjectHashMap

        if (attrCountList.size() < (i + 1)) {
          attrCountList.setSize(i + 1);
        }
        attrCountList.set(i, attrCounts[i]);
      }
    this.attrNodeLists = new OpenIntObjectHashMap();
    this.minSupport = minSupport;
  }
View Full Code Here

Examples of org.apache.mahout.math.map.OpenIntObjectHashMap

    private FPNode(FPNode parent, int attribute, long count) {
      this.parent = parent;
      this.attribute = attribute;
      this.count = count;
      this.childMap = new OpenIntObjectHashMap();
    }
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.