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();
}
Aggregations