use of uk.gov.gchq.gaffer.function.filter.AreIn in project Gaffer by gchq.
the class GafferResultCacheExporter method get.
public CloseableIterable<?> get(final String key) throws OperationException {
final GetEdges<EdgeSeed> getEdges = new GetEdges.Builder<EdgeSeed>().addSeed(new EdgeSeed(jobId, key, true)).view(new View.Builder().edge("result", new ViewElementDefinition.Builder().preAggregationFilter(new ElementFilter.Builder().select("opAuths").execute(new AreIn(userOpAuths)).build()).build()).build()).build();
final CloseableIterable<Edge> edges = resultCache.execute(getEdges, user);
if (null == edges) {
return new WrappedCloseableIterable<>(Collections.emptyList());
}
return new TransformJsonResult(edges, jsonSerialiser);
}
use of uk.gov.gchq.gaffer.function.filter.AreIn in project Gaffer by gchq.
the class AreInExample method areInSet.
public void areInSet() {
// ---------------------------------------------------------
final AreIn function = new AreIn(1, 2, 3);
// ---------------------------------------------------------
runExample(function, createSet(1, 2, 3), createSet(1, 2, 3, 4), createSet(1, 4), createSet(1, 2), createSet());
}
Aggregations