Search in sources :

Example 6 with IncludeEdgeType

use of uk.gov.gchq.gaffer.operation.GetOperation.IncludeEdgeType in project Gaffer by gchq.

the class ClassicIteratorSettingsFactory method getElementPropertyRangeQueryFilter.

@Override
public IteratorSetting getElementPropertyRangeQueryFilter(final GetElementsOperation<?, ?> operation) {
    final boolean includeEntities = operation.isIncludeEntities();
    final IncludeEdgeType includeEdgeType = operation.getIncludeEdges();
    if (includeEdgeType != IncludeEdgeType.NONE && includeEntities) {
        return null;
    }
    return new IteratorSettingBuilder(AccumuloStoreConstants.RANGE_ELEMENT_PROPERTY_FILTER_ITERATOR_PRIORITY, AccumuloStoreConstants.RANGE_ELEMENT_PROPERTY_FILTER_ITERATOR_NAME, RANGE_ELEMENT_PROPERTY_FILTER_ITERATOR).all().includeEdges(includeEdgeType).includeEntities(includeEntities).build();
}
Also used : IncludeEdgeType(uk.gov.gchq.gaffer.operation.GetOperation.IncludeEdgeType) IteratorSettingBuilder(uk.gov.gchq.gaffer.accumulostore.utils.IteratorSettingBuilder)

Aggregations

IncludeEdgeType (uk.gov.gchq.gaffer.operation.GetOperation.IncludeEdgeType)6 IncludeIncomingOutgoingType (uk.gov.gchq.gaffer.operation.GetOperation.IncludeIncomingOutgoingType)4 IteratorSettingBuilder (uk.gov.gchq.gaffer.accumulostore.utils.IteratorSettingBuilder)3 RangeFactoryException (uk.gov.gchq.gaffer.accumulostore.key.exception.RangeFactoryException)2 SerialisationException (uk.gov.gchq.gaffer.exception.SerialisationException)2 GetAllElements (uk.gov.gchq.gaffer.operation.impl.get.GetAllElements)2 Range (org.apache.accumulo.core.data.Range)1 Pair (uk.gov.gchq.gaffer.accumulostore.utils.Pair)1 Matches (uk.gov.gchq.gaffer.operation.data.ElementSeed.Matches)1