use of com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures in project titan by thinkaurelius.
the class StorageFeaturesTest method testFeaturesImplementation.
@Test
public void testFeaturesImplementation() {
StoreFeatures features;
features = new StandardStoreFeatures.Builder().build();
assertFalse(features.hasMultiQuery());
assertFalse(features.hasLocking());
assertFalse(features.isDistributed());
assertFalse(features.hasScan());
features = new StandardStoreFeatures.Builder().locking(true).build();
assertFalse(features.hasMultiQuery());
assertTrue(features.hasLocking());
assertFalse(features.isDistributed());
features = new StandardStoreFeatures.Builder().multiQuery(true).unorderedScan(true).build();
assertTrue(features.hasMultiQuery());
assertTrue(features.hasUnorderedScan());
assertFalse(features.hasOrderedScan());
assertTrue(features.hasScan());
assertFalse(features.isDistributed());
assertFalse(features.hasLocking());
}
use of com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures in project titan by thinkaurelius.
the class AbstractCassandraStoreTest method testOrderedConfiguration.
@Test
@Category({ OrderedKeyStoreTests.class })
public void testOrderedConfiguration() {
if (!manager.getFeatures().hasOrderedScan()) {
log.warn("Can't test key-ordered features on incompatible store. " + "This warning could indicate reduced test coverage and " + "a broken JUnit configuration. Skipping test {}.", name.getMethodName());
return;
}
StoreFeatures features = manager.getFeatures();
assertTrue(features.isKeyOrdered());
}
use of com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures in project titan by thinkaurelius.
the class AbstractCassandraStoreTest method testUnorderedConfiguration.
@Test
@Category({ UnorderedKeyStoreTests.class })
public void testUnorderedConfiguration() {
if (!manager.getFeatures().hasUnorderedScan()) {
log.warn("Can't test key-unordered features on incompatible store. " + "This warning could indicate reduced test coverage and " + "a broken JUnit configuration. Skipping test {}.", name.getMethodName());
return;
}
StoreFeatures features = manager.getFeatures();
assertFalse(features.isKeyOrdered());
assertFalse(features.hasLocalKeyPartition());
}
use of com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures in project titan by thinkaurelius.
the class AbstractCassandraStoreTest method testTTLSupported.
@Test
public void testTTLSupported() throws Exception {
StoreFeatures features = manager.getFeatures();
assertTrue(features.hasCellTTL());
}
use of com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures in project titan by thinkaurelius.
the class EmbeddedStoreTest method testConfiguration.
@Test
@Category({ OrderedKeyStoreTests.class })
public void testConfiguration() {
StoreFeatures features = manager.getFeatures();
assertTrue(features.isKeyOrdered());
assertTrue(features.hasLocalKeyPartition());
}
Aggregations