Search in sources :

Example 51 with FreqMap

use of uk.gov.gchq.gaffer.types.FreqMap in project Gaffer by gchq.

the class TestUtils method getMergedFreqMap.

private static FreqMap getMergedFreqMap() {
    final FreqMap f = new FreqMap();
    f.upsert("A", 2L);
    f.upsert("B", 1L);
    f.upsert("C", 1L);
    return f;
}
Also used : FreqMap(uk.gov.gchq.gaffer.types.FreqMap)

Example 52 with FreqMap

use of uk.gov.gchq.gaffer.types.FreqMap in project Gaffer by gchq.

the class TestUtils method getFreqMap1.

public static FreqMap getFreqMap1() {
    final FreqMap f = new FreqMap();
    f.upsert("A", 1L);
    f.upsert("B", 1L);
    return f;
}
Also used : FreqMap(uk.gov.gchq.gaffer.types.FreqMap)

Example 53 with FreqMap

use of uk.gov.gchq.gaffer.types.FreqMap in project Gaffer by gchq.

the class TestUtils method getDoubledMergedFreqMap.

private static FreqMap getDoubledMergedFreqMap() {
    final FreqMap f = new FreqMap();
    f.upsert("A", 4L);
    f.upsert("B", 2L);
    f.upsert("C", 2L);
    return f;
}
Also used : FreqMap(uk.gov.gchq.gaffer.types.FreqMap)

Example 54 with FreqMap

use of uk.gov.gchq.gaffer.types.FreqMap in project Gaffer by gchq.

the class TestUtils method getFreqMap2.

public static FreqMap getFreqMap2() {
    final FreqMap f = new FreqMap();
    f.upsert("A", 1L);
    f.upsert("C", 1L);
    return f;
}
Also used : FreqMap(uk.gov.gchq.gaffer.types.FreqMap)

Example 55 with FreqMap

use of uk.gov.gchq.gaffer.types.FreqMap in project Gaffer by gchq.

the class TestUtils method getDoubledFreqMap1.

public static FreqMap getDoubledFreqMap1() {
    final FreqMap f = new FreqMap();
    f.upsert("A", 2L);
    f.upsert("B", 2L);
    return f;
}
Also used : FreqMap(uk.gov.gchq.gaffer.types.FreqMap)

Aggregations

FreqMap (uk.gov.gchq.gaffer.types.FreqMap)62 Test (org.junit.jupiter.api.Test)29 ArrayList (java.util.ArrayList)9 Edge (uk.gov.gchq.gaffer.data.element.Edge)9 Entity (uk.gov.gchq.gaffer.data.element.Entity)9 Date (java.util.Date)6 Schema (uk.gov.gchq.gaffer.store.schema.Schema)6 FunctionTest (uk.gov.gchq.koryphe.function.FunctionTest)6 Configuration (org.apache.hadoop.conf.Configuration)5 FileSystem (org.apache.hadoop.fs.FileSystem)5 Path (org.apache.hadoop.fs.Path)5 Row (org.apache.spark.sql.Row)5 SparkSession (org.apache.spark.sql.SparkSession)5 WrappedArray (scala.collection.mutable.WrappedArray)5 Element (uk.gov.gchq.gaffer.data.element.Element)5 HashMap (java.util.HashMap)4 Key (org.apache.accumulo.core.data.Key)4 Test (org.junit.Test)4 EdgeId (uk.gov.gchq.gaffer.data.element.id.EdgeId)4 ElementId (uk.gov.gchq.gaffer.data.element.id.ElementId)4