Package org.openrdf.sail.memory.model

Examples of org.openrdf.sail.memory.model.MemValueFactory


      throw new IllegalStateException("sail has already been intialized");
    }

    logger.debug("Initializing MemoryStore...");

    MemValueFactory valueFactory = createValueFactory();
    currentSnapshot = 1;

    if (persist) {
      File dataDir = getDataDir();
      DirectoryLockManager locker = new DirectoryLockManager(dataDir);
View Full Code Here


    return lf;
  }

  MemValueFactory createValueFactory() {
    return new MemValueFactory(bf, uf, lf);
  }
View Full Code Here

    statementListLockManager = new ReadPrefReadWriteLockManager(trackLocks);
    txnLockManager = new ExclusiveLockManager(trackLocks);
    namespaceStore = new MemNamespaceStore();

    valueFactory = new MemValueFactory();
    statements = new MemStatementList(256);
    currentSnapshot = 1;

    if (persist) {
      dataFile = new File(getDataDir(), DATA_FILE_NAME);
View Full Code Here

        Resource subj = (Resource)getConstantValue(sp.getSubjectVar());
        URI pred = (URI)getConstantValue(sp.getPredicateVar());
        Value obj = getConstantValue(sp.getObjectVar());
        Resource context = (Resource)getConstantValue(sp.getContextVar());

        MemValueFactory valueFactory = store.getValueFactory();

        // Perform look-ups for value-equivalents of the specified values
        MemResource memSubj = valueFactory.getMemResource(subj);
        MemURI memPred = valueFactory.getMemURI(pred);
        MemValue memObj = valueFactory.getMemValue(obj);
        MemResource memContext = valueFactory.getMemResource(context);

        if (subj != null && memSubj == null || pred != null && memPred == null || obj != null
            && memObj == null || context != null && memContext == null)
        {
          // non-existent subject, predicate, object or context
View Full Code Here

TOP

Related Classes of org.openrdf.sail.memory.model.MemValueFactory

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.