@Override public void clear() { owner.clear(); }
@Override public void clear() { owner.clear(); }
private void release() { // the HPPC release() method allocates new arrays // the clear() method overwrite the existing keys with the default value // we want to throw away all data to allow for GC collection instead. if (votes.keys != null) { votes.keys = EMPTY_INTS; votes.clear(); votes.keys = null; votes.values = null; } } }
private void release() { // the HPPC release() method allocates new arrays // the clear() method overwrite the existing keys with the default value // we want to throw away all data to allow for GC collection instead. if (votes.keys != null) { votes.keys = EMPTY_INTS; votes.clear(); votes.keys = null; votes.values = null; } } }
@Override public void clear() { owner.clear(); }
@Override public void clear() { owner.clear(); }
/** * Clear stats */ public void clear() { Arrays.fill(stateNanos, 01); longMetrics.clear(); doubleMetrics.clear(); }
/** * Clear stats */ public synchronized void clear() { processingNanos = 0l; setupNanos = 0l; waitNanos = 0l; longMetrics.clear(); doubleMetrics.clear(); }
private boolean compute(int nodeId, boolean didChange) { votes.clear(); int partition = existingLabels[nodeId]; int previous = partition; graph.forEachRelationship(nodeId, direction, this); double weight = Double.NEGATIVE_INFINITY; for (IntDoubleCursor vote : votes) { if (weight < vote.value) { weight = vote.value; partition = vote.key; } } progressLogger.logProgress(nodeId, maxNode); if (partition != previous) { existingLabels[nodeId] = partition; return true; } return didChange; }
private boolean compute(int nodeId, boolean didChange) { votes.clear(); int partition = existingLabels[nodeId]; int previous = partition; graph.forEachRelationship(nodeId, direction, this); double weight = Double.NEGATIVE_INFINITY; for (IntDoubleCursor vote : votes) { if (weight < vote.value) { weight = vote.value; partition = vote.key; } } progressLogger.logProgress(nodeId, maxNode); if (partition != previous) { existingLabels[nodeId] = partition; return true; } return didChange; }