Package org.openrdf.repository.http.helpers

Examples of org.openrdf.repository.http.helpers.PrefixHashSet.match()


  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


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

    return hash.match(pred.stringValue());
  }

  private void closeAll(Iterable<? extends Cursor<?>> cursors) {
    for (Cursor<?> cursor : cursors) {
      try {
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.