Examples of NodeStore


Examples of er.neo4jadaptor.storage.neo4j.NodeStore

      int countPrimaryKeys = entity.primaryKeyAttributes().count();
      Store<Ersatz, Neo4JErsatz> neoStore;
      LuceneStore<Type> luceneStore = new LuceneStore<Type>(db, entity);
     
      if (countPrimaryKeys == 1) {
        neoStore = new NodeStore(db, entity, spaceManager, tempNodePool);
      } else if (countPrimaryKeys == 2) {
        neoStore = new RelationshipStore(db, entity);
      } else {
        throw new IllegalArgumentException();
      }
View Full Code Here

Examples of org.apache.jackrabbit.mk.model.NodeStore

    }

    static Connection createWorkspaceConnection(SimpleCredentials credentials,
            String workspace, MicroKernel microKernel, String revision) throws NoSuchWorkspaceException {

        NodeStore store = new KernelNodeStore(microKernel); // TODO: pass revision?
        NodeState wspRoot = store.getRoot().getChildNode(workspace);
        if (wspRoot == null) {
            throw new NoSuchWorkspaceException(workspace);
        }

        return new ConnectionImpl(credentials, workspace, store, wspRoot);
View Full Code Here

Examples of org.apache.jackrabbit.mongomk.api.NodeStore

        DBCollection statsCollection = mongoConnection.getDB().getCollection("statistics");
        statsCollection.insert(new Stats[] { commitStats, getNodesStats }, WriteConcern.NONE);
    }

    private void initMicroKernel() throws Exception {
        NodeStore nodeStore = new MongoNodeStore(mongoConnection.getDB());
        BlobStore blobStore = new BlobStoreFS(System.getProperty("java.io.tmpdir"));
        microKernel = new MongoMicroKernel(mongoConnection, nodeStore, blobStore);
    }
View Full Code Here

Examples of org.apache.jackrabbit.mongomk.api.NodeStore

    private void initHandler() {
        this.handler = new ContinousHandler();
    }

    private void initMicroKernel() throws Exception {
        NodeStore nodeStore = new MongoNodeStore(mongoConnection.getDB());
        BlobStore blobStore = new BlobStoreFS(System.getProperty("java.io.tmpdir"));
        microKernel = new MongoMicroKernel(mongoConnection, nodeStore, blobStore);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeStore

        logger.info("Connected to database {}", mongoDB);

        registerJMXBeans(mk, context);

        NodeStore store;
        if (useMK) {
            KernelNodeStore kns = new KernelNodeStore(mk);
            store = kns;
            observerTracker = new ObserverTracker(kns);
        } else {
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeStore

            try {
                createSourceContent(repository);
            } finally {
                repository.shutdown();
            }
            NodeStore target = new KernelNodeStore(new MicroKernelImpl());
            RepositoryUpgrade.copy(source, target);
            targetRepository = new Jcr(new Oak(target)).createRepository();
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeStore

            // the cost of using the property index for "@primaryType is not null" is very high
            nt.setProperty(IndexConstants.ENTRY_COUNT_PROPERTY_NAME, Long.valueOf(Long.MAX_VALUE));
        }

        NodeState base = builder.getNodeState();
        NodeStore store = new MemoryNodeStore(base);
        BuiltInNodeTypes.register(new SystemRoot(
                store, new EditorHook(new RegistrationEditorProvider())));
        NodeState target = store.getRoot();
        target.compareAgainstBaseState(base, new ApplyDiff(builder));
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeStore

    private NodeState state;

    @Before
    public void setUp() throws CommitFailedException {
        NodeStore store = new KernelNodeStore(new MicroKernelImpl());

        NodeBuilder builder = store.getRoot().builder();
        builder.setProperty("a", 1);
        builder.setProperty("b", 2);
        builder.setProperty("c", 3);
        builder.child("x");
        builder.child("y");
        builder.child("z");

        state = store.merge(builder, EmptyHook.INSTANCE, PostCommitHook.EMPTY);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeStore

    private NodeState state;

    @Before
    public void setUp() throws CommitFailedException {
        NodeStore store = new KernelNodeStore(new MicroKernelImpl());

        NodeBuilder builder = store.getRoot().builder();
        builder.setProperty("a", 1);
        for (int i = 0; i <= N; i++) {
            builder.child("x" + i);
        }

        state = store.merge(builder, EmptyHook.INSTANCE, PostCommitHook.EMPTY);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeStore

public class KernelNodeBuilderTest {

    @Test
    public void deletesKernelNodeStore() throws CommitFailedException {
        NodeStore store = new KernelNodeStore(new MicroKernelImpl());
        init(store);
        run(store);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.