use of org.janusgraph.diskstorage.keycolumnvalue.StoreFeatures in project janusgraph by JanusGraph.
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 org.janusgraph.diskstorage.keycolumnvalue.StoreFeatures in project janusgraph by JanusGraph.
the class AbstractStoreManager method getMetaDataSchema.
public EntryMetaData[] getMetaDataSchema(String storeName) {
List<EntryMetaData> schemaBuilder = Lists.newArrayList();
StoreFeatures features = getFeatures();
if (features.hasTimestamps() && storageConfig.get(STORE_META_TIMESTAMPS, storeName))
schemaBuilder.add(EntryMetaData.TIMESTAMP);
if (features.hasCellTTL() && storageConfig.get(STORE_META_TTL, storeName))
schemaBuilder.add(EntryMetaData.TTL);
if (features.hasVisibility() && storageConfig.get(STORE_META_VISIBILITY, storeName))
schemaBuilder.add(EntryMetaData.VISIBILITY);
if (schemaBuilder.isEmpty())
return StaticArrayEntry.EMPTY_SCHEMA;
return schemaBuilder.toArray(new EntryMetaData[schemaBuilder.size()]);
}
use of org.janusgraph.diskstorage.keycolumnvalue.StoreFeatures in project janusgraph by JanusGraph.
the class CQLStoreTest method testUnorderedConfiguration.
@Test
@Category({ UnorderedKeyStoreTests.class })
public void testUnorderedConfiguration() {
if (!this.manager.getFeatures().hasUnorderedScan()) {
LOGGER.warn("Can't test key-unordered features on incompatible store. " + "This warning could indicate reduced test coverage and " + "a broken JUnit configuration. Skipping test {}.", this.name.getMethodName());
return;
}
final StoreFeatures features = this.manager.getFeatures();
assertFalse(features.isKeyOrdered());
assertFalse(features.hasLocalKeyPartition());
}
use of org.janusgraph.diskstorage.keycolumnvalue.StoreFeatures in project janusgraph by JanusGraph.
the class CQLStoreTest method testOrderedConfiguration.
@Test
@Category({ OrderedKeyStoreTests.class })
public void testOrderedConfiguration() {
if (!this.manager.getFeatures().hasOrderedScan()) {
LOGGER.warn("Can't test key-ordered features on incompatible store. " + "This warning could indicate reduced test coverage and " + "a broken JUnit configuration. Skipping test {}.", this.name.getMethodName());
return;
}
final StoreFeatures features = this.manager.getFeatures();
assertTrue(features.isKeyOrdered());
}
use of org.janusgraph.diskstorage.keycolumnvalue.StoreFeatures in project janusgraph by JanusGraph.
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());
}
Aggregations