protected long sizeInternal(final Resource... contexts) throws SailException {
    if (0 == contexts.length) {
      return baseSailConnection.size(singleContext);
    } else {
      for (Resource context : contexts) {
        if (null != context && context.equals(singleContext)) {
          return baseSailConnection.size(singleContext);
        }
      }

      return 0;
    }
  }
 public long size(final Resource... contexts) throws SailException {
   if (config.logReadOperations) {
     queryHandler.handle(new SizeCall(id, contexts));
   }
   return baseSailConnection.size(contexts);
 }
Ejemplo n.º 3
0
 public long size(final Resource... contexts) throws SailException {
   return baseSailConnection.size(contexts);
 }