Package com.thinkaurelius.titan.diskstorage.keycolumnvalue

Examples of com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures


            log.warn("Transactions are disabled. Ensure that there is at most one Titan instance interacting with this BerkeleyDB instance, otherwise your database may corrupt.");

        int cachePercentage = configuration.getInt(CACHE_KEY, CACHE_DEFAULT);
        initialize(cachePercentage);

        features = new StoreFeatures();
        features.supportsOrderedScan = true;
        features.supportsUnorderedScan = false;
        features.supportsBatchMutation = false;
        features.supportsTransactions = true;
        features.supportsConsistentKeyOperations = false;
View Full Code Here


    public String getName() {
        return getClass().getSimpleName() + ":" + directory.toString();
    }

    private StoreFeatures getDefaultFeatures() {
        StoreFeatures features = new StoreFeatures();

        features.supportsTransactions = true;
        features.isDistributed = false;

        //@todo: figure out what these do, Copied from Berkeley for now
View Full Code Here

    }

    public VertexIDAssignerTest(boolean partition, int partitionMax, int[] localPartition) {
        MockIDAuthority idAuthority = new MockIDAuthority(11, partitionMax);

        StoreFeatures features = StoreFeatures.defaultFeature(false);
        if (localPartition != null) {
            features.hasLocalKeyPartition = true;
            idAuthority.setLocalPartition(localPartition);
        }
        Configuration config = new BaseConfiguration();
View Full Code Here

public class StorageFeaturesTest {

    @Test
    public void testFeaturesImplementation() {
        StoreFeatures features;
        try {
            features = new StoreFeatures();
            features.supportsBatchMutation();
            fail();
        } catch (AssertionError e) {
        }

        try {
            features = new StoreFeatures();
            features.hasLocalKeyPartition = true;
            features.hasLocalKeyPartition();
            fail();
        } catch (AssertionError e) {
        }
        features = new StoreFeatures();
        features.supportsOrderedScan = false;
        features.supportsUnorderedScan = false;
        features.supportsBatchMutation = true;
        features.supportsTransactions = false;
        features.supportsMultiQuery = false;
        features.supportsConsistentKeyOperations = true;
        features.supportsLocking = false;
        features.isKeyOrdered = false;
        features.isDistributed = true;
        features.hasLocalKeyPartition = false;
        assertNotNull(features);
        assertFalse(features.supportsScan());
        assertFalse(features.supportsTransactions());
        assertTrue(features.isDistributed());
    }
View Full Code Here

                + "a broken JUnit configuration.  Skipping test {}.",
                name.getMethodName());
            return;
        }
       
        StoreFeatures features = manager.getFeatures();
        assertFalse(features.isKeyOrdered());
        assertFalse(features.hasLocalKeyPartition());
    }
View Full Code Here

                + "a broken JUnit configuration.  Skipping test {}.",
                name.getMethodName());
            return;
        }
       
        StoreFeatures features = manager.getFeatures();
        assertTrue(features.isKeyOrdered());
    }
View Full Code Here

    }

    @Test
    @Category({ OrderedKeyStoreTests.class })
    public void testConfiguration() {
        StoreFeatures features = manager.getFeatures();
        assertTrue(features.isKeyOrdered());
        assertTrue(features.hasLocalKeyPartition());
    }
View Full Code Here

TOP

Related Classes of com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.