use of uk.gov.gchq.gaffer.accumulostore.operation.handler.GetElementsInRangesHandler in project Gaffer by gchq.
the class AccumuloStoreTest method testStoreReturnsHandlersForRegisteredOperations.
public void testStoreReturnsHandlersForRegisteredOperations(final AccumuloStore store) {
OperationHandler op;
// Then
assertNotNull(store.getOperationHandler(Validate.class));
op = store.getOperationHandler(AddElementsFromHdfs.class);
assertTrue(op instanceof AddElementsFromHdfsHandler);
op = store.getOperationHandler(GetElementsBetweenSets.class);
assertTrue(op instanceof GetElementsBetweenSetsHandler);
op = store.getOperationHandler(GetElementsInRanges.class);
assertTrue(op instanceof GetElementsInRangesHandler);
op = store.getOperationHandler(GetElementsWithinSet.class);
assertTrue(op instanceof GetElementsWithinSetHandler);
op = store.getOperationHandler(SplitStore.class);
assertTrue(op instanceof SplitStoreHandler);
op = store.getOperationHandler(SampleDataForSplitPoints.class);
assertTrue(op instanceof SampleDataForSplitPointsHandler);
op = store.getOperationHandler(ImportAccumuloKeyValueFiles.class);
assertTrue(op instanceof ImportAccumuloKeyValueFilesHandler);
op = store.getOperationHandler(GenerateElements.class);
assertTrue(op instanceof GenerateElementsHandler);
op = store.getOperationHandler(GenerateObjects.class);
assertTrue(op instanceof GenerateObjectsHandler);
}
use of uk.gov.gchq.gaffer.accumulostore.operation.handler.GetElementsInRangesHandler in project Gaffer by gchq.
the class AccumuloStore method addAdditionalOperationHandlers.
@Override
protected void addAdditionalOperationHandlers() {
addOperationHandler(AddElementsFromHdfs.class, new AddElementsFromHdfsHandler());
addOperationHandler(GetElementsBetweenSets.class, new GetElementsBetweenSetsHandler());
addOperationHandler(GetElementsWithinSet.class, new GetElementsWithinSetHandler());
addOperationHandler(SplitStoreFromFile.class, new HdfsSplitStoreFromFileHandler());
addOperationHandler(SplitStoreFromIterable.class, new SplitStoreFromIterableHandler());
addOperationHandler(SplitStore.class, new SplitStoreHandler());
addOperationHandler(SampleElementsForSplitPoints.class, new SampleElementsForSplitPointsHandler());
addOperationHandler(GenerateSplitPointsFromSample.class, new GenerateSplitPointsFromSampleHandler());
addOperationHandler(SampleDataForSplitPoints.class, new SampleDataForSplitPointsHandler());
addOperationHandler(ImportAccumuloKeyValueFiles.class, new ImportAccumuloKeyValueFilesHandler());
if (null == getSchema().getVertexSerialiser() || getSchema().getVertexSerialiser().preservesObjectOrdering()) {
addOperationHandler(SummariseGroupOverRanges.class, new SummariseGroupOverRangesHandler());
addOperationHandler(GetElementsInRanges.class, new GetElementsInRangesHandler());
} else {
LOGGER.warn("Accumulo range scan operations will not be available on this store as the vertex serialiser does not preserve object ordering. Vertex serialiser: {}", getSchema().getVertexSerialiser().getClass().getName());
}
}
Aggregations