Search in sources :

Example 1 with StoreFeatures

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());
}
Also used : StandardStoreFeatures(com.thinkaurelius.titan.diskstorage.keycolumnvalue.StandardStoreFeatures) StandardStoreFeatures(com.thinkaurelius.titan.diskstorage.keycolumnvalue.StandardStoreFeatures) StoreFeatures(com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures) Test(org.junit.Test)

Example 2 with StoreFeatures

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());
}
Also used : StoreFeatures(com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures) Category(org.junit.experimental.categories.Category) Test(org.junit.Test) KeyColumnValueStoreTest(com.thinkaurelius.titan.diskstorage.KeyColumnValueStoreTest)

Example 3 with StoreFeatures

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());
}
Also used : StoreFeatures(com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures) Category(org.junit.experimental.categories.Category) Test(org.junit.Test) KeyColumnValueStoreTest(com.thinkaurelius.titan.diskstorage.KeyColumnValueStoreTest)

Example 4 with StoreFeatures

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());
}
Also used : StoreFeatures(com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures) Test(org.junit.Test) KeyColumnValueStoreTest(com.thinkaurelius.titan.diskstorage.KeyColumnValueStoreTest)

Example 5 with StoreFeatures

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());
}
Also used : StoreFeatures(com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures) Category(org.junit.experimental.categories.Category) AbstractCassandraStoreTest(com.thinkaurelius.titan.diskstorage.cassandra.AbstractCassandraStoreTest) Test(org.junit.Test)

Aggregations

StoreFeatures (com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures)7 Test (org.junit.Test)5 KeyColumnValueStoreTest (com.thinkaurelius.titan.diskstorage.KeyColumnValueStoreTest)3 Category (org.junit.experimental.categories.Category)3 BackendException (com.thinkaurelius.titan.diskstorage.BackendException)1 EntryMetaData (com.thinkaurelius.titan.diskstorage.EntryMetaData)1 AbstractCassandraStoreTest (com.thinkaurelius.titan.diskstorage.cassandra.AbstractCassandraStoreTest)1 StandardStoreFeatures (com.thinkaurelius.titan.diskstorage.keycolumnvalue.StandardStoreFeatures)1 KCVSLogManager (com.thinkaurelius.titan.diskstorage.log.kcvs.KCVSLogManager)1 GraphDatabaseConfiguration (com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration)1