Package org.openrdf.repository.http.helpers

Examples of org.openrdf.repository.http.helpers.PrefixHashSet


  }

  public long size(Resource subj, URI pred, Value obj, boolean includeInferred, Resource... contexts)
    throws StoreException
  {
    PrefixHashSet hash = federation.getLocalPropertySpace();

    if (federation.isDistinct() || pred != null && hash != null && hash.match(pred.stringValue())) {
      long size = 0;
      for (RepositoryConnection member : members) {
        size += member.sizeMatch(subj, pred, obj, includeInferred, contexts);
      }
      return size;
View Full Code Here


//    new QueryJoinOptimizer(statistics).optimize(query, bindings);
//    new FilterOptimizer().optimize(query, bindings);

    new EmptyPatternOptimizer(members).optimize(query, bindings);
    boolean distinct = federation.isDistinct();
    PrefixHashSet local = federation.getLocalPropertySpace();
    new FederationJoinOptimizer(members, distinct, local).optimize(query, bindings);
    new OwnedTupleExprPruner().optimize(query, bindings);
    new QueryModelPruner().optimize(query, bindings);
    new QueryJoinOptimizer(statistics).optimize(query, bindings);
    new FederationFilterOptimizer().optimize(query, bindings);
View Full Code Here

  private boolean isLocal(URI pred) {
    if (pred == null) {
      return false;
    }

    PrefixHashSet hash = federation.getLocalPropertySpace();
    if (hash == null) {
      return false;
    }

    return hash.match(pred.stringValue());
  }
View Full Code Here

  public void setLocalPropertySpace(Collection<String> localPropertySpace) {
    if (localPropertySpace.isEmpty()) {
      this.localPropertySpace = null;
    }
    else {
      this.localPropertySpace = new PrefixHashSet(localPropertySpace);
    }
  }
View Full Code Here

TOP

Related Classes of org.openrdf.repository.http.helpers.PrefixHashSet

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.