Search in sources :

Example 11 with IntOpenHashSet

use of it.unimi.dsi.fastutil.ints.IntOpenHashSet in project geode by apache.

the class GatewaySenderEventCallbackArgument method fromData.

@Override
public void fromData(DataInput in) throws IOException, ClassNotFoundException {
    super.fromData(in);
    this.originatingDSId = DataSerializer.readInteger(in);
    this.receipientDSIds = new IntOpenHashSet(2);
    int numberOfRecipientGateways = in.readInt();
    for (int i = 0; i < numberOfRecipientGateways; i++) {
        this.receipientDSIds.add(in.readInt());
    }
}
Also used : IntOpenHashSet(it.unimi.dsi.fastutil.ints.IntOpenHashSet)

Example 12 with IntOpenHashSet

use of it.unimi.dsi.fastutil.ints.IntOpenHashSet in project gradle by gradle.

the class ClassDependenciesVisitor method analyze.

public static ClassAnalysis analyze(String className, ClassReader reader) {
    IntSet constants = new IntOpenHashSet(2);
    Set<String> classDependencies = Sets.newHashSet();
    ClassDependenciesVisitor visitor = new ClassDependenciesVisitor(constants, classDependencies, new ClassRelevancyFilter(className), reader);
    reader.accept(visitor, ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES);
    return new ClassAnalysis(className, classDependencies, visitor.isDependencyToAll(), constants, visitor.getSuperTypes());
}
Also used : IntOpenHashSet(it.unimi.dsi.fastutil.ints.IntOpenHashSet) IntSet(it.unimi.dsi.fastutil.ints.IntSet) ClassAnalysis(org.gradle.api.internal.tasks.compile.incremental.deps.ClassAnalysis)

Example 13 with IntOpenHashSet

use of it.unimi.dsi.fastutil.ints.IntOpenHashSet in project gradle by gradle.

the class JarSnapshot method getRelevantConstants.

public IntSet getRelevantConstants(JarSnapshot other, Set<String> affectedClasses) {
    IntSet result = new IntOpenHashSet();
    for (String affectedClass : affectedClasses) {
        IntSet difference = new IntOpenHashSet(other.getData().data.getConstants(affectedClass));
        difference.removeAll(data.data.getConstants(affectedClass));
        result.addAll(difference);
    }
    return result;
}
Also used : IntOpenHashSet(it.unimi.dsi.fastutil.ints.IntOpenHashSet) IntSet(it.unimi.dsi.fastutil.ints.IntSet)

Example 14 with IntOpenHashSet

use of it.unimi.dsi.fastutil.ints.IntOpenHashSet in project gradle by gradle.

the class PreviousCompilation method getDependents.

public DependentsSet getDependents(String className, IntSet newConstants) {
    IntSet constants = new IntOpenHashSet(analysis.getData().getConstants(className));
    constants.removeAll(newConstants);
    return analysis.getRelevantDependents(className, constants);
}
Also used : IntOpenHashSet(it.unimi.dsi.fastutil.ints.IntOpenHashSet) IntSet(it.unimi.dsi.fastutil.ints.IntSet)

Aggregations

IntOpenHashSet (it.unimi.dsi.fastutil.ints.IntOpenHashSet)14 IntSet (it.unimi.dsi.fastutil.ints.IntSet)5 FieldSpec (com.linkedin.pinot.common.data.FieldSpec)2 Supplier (com.google.common.base.Supplier)1 IntArrayList (it.unimi.dsi.fastutil.ints.IntArrayList)1 ByteBuffer (java.nio.ByteBuffer)1 Random (java.util.Random)1 UnitTest (org.apache.geode.test.junit.categories.UnitTest)1 ClassAnalysis (org.gradle.api.internal.tasks.compile.incremental.deps.ClassAnalysis)1 Test (org.junit.Test)1 Test (org.testng.annotations.Test)1