Search in sources :

Example 1 with AccumuloEdgeValueLoader

use of uk.gov.gchq.gaffer.accumulostore.data.element.AccumuloEdgeValueLoader in project Gaffer by gchq.

the class AbstractElementFilter method accept.

@Override
public boolean accept(final Key key, final Value value) {
    final String group = elementConverter.getGroupFromColumnFamily(key.getColumnFamilyData().getBackingArray());
    if (groupsWithoutFilters.contains(group)) {
        return true;
    }
    final Element element;
    if (schema.isEntity(group)) {
        element = new LazyEntity(new Entity(group), new AccumuloEntityValueLoader(group, key, value, elementConverter, schema));
    } else {
        element = new LazyEdge(new Edge(group, null, null, false), new AccumuloEdgeValueLoader(group, key, value, elementConverter, schema, true));
    }
    return elementPredicate.test(element);
}
Also used : LazyEntity(uk.gov.gchq.gaffer.data.element.LazyEntity) Entity(uk.gov.gchq.gaffer.data.element.Entity) AccumuloEntityValueLoader(uk.gov.gchq.gaffer.accumulostore.data.element.AccumuloEntityValueLoader) Element(uk.gov.gchq.gaffer.data.element.Element) LazyEntity(uk.gov.gchq.gaffer.data.element.LazyEntity) AccumuloEdgeValueLoader(uk.gov.gchq.gaffer.accumulostore.data.element.AccumuloEdgeValueLoader) Edge(uk.gov.gchq.gaffer.data.element.Edge) LazyEdge(uk.gov.gchq.gaffer.data.element.LazyEdge) LazyEdge(uk.gov.gchq.gaffer.data.element.LazyEdge)

Aggregations

AccumuloEdgeValueLoader (uk.gov.gchq.gaffer.accumulostore.data.element.AccumuloEdgeValueLoader)1 AccumuloEntityValueLoader (uk.gov.gchq.gaffer.accumulostore.data.element.AccumuloEntityValueLoader)1 Edge (uk.gov.gchq.gaffer.data.element.Edge)1 Element (uk.gov.gchq.gaffer.data.element.Element)1 Entity (uk.gov.gchq.gaffer.data.element.Entity)1 LazyEdge (uk.gov.gchq.gaffer.data.element.LazyEdge)1 LazyEntity (uk.gov.gchq.gaffer.data.element.LazyEntity)1