@Override public String toString() { StringBuilder sb = new StringBuilder(256); sb.append("("); sb.append(getSubject()); sb.append(", "); sb.append(getPredicate()); sb.append(", "); sb.append(getObject()); sb.append(")"); sb.append(" [").append(getContext()).append("]"); return sb.toString(); } }
/** * The default implementation buffers removed statements until the update operation is complete. */ @Override public void removeStatement(UpdateContext op, Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException { verifyIsOpen(); verifyIsActive(); synchronized (removed) { assert removed.containsKey(op); Collection<Statement> pending = removed.get(op); if (contexts == null) { pending.add(new WildStatement(subj, pred, obj)); } else if (contexts.length == 0) { pending.add(new WildStatement(subj, pred, obj, wildContext)); } else { for (Resource ctx : contexts) { pending.add(new WildStatement(subj, pred, obj, ctx)); } } if (pending.size() % BLOCK_SIZE == 0 && !isActiveOperation()) { endUpdate(op); startUpdate(op); } } }
/** * The default implementation buffers removed statements until the update operation is complete. */ @Override public void removeStatement(UpdateContext op, Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException { verifyIsOpen(); verifyIsActive(); synchronized (removed) { assert removed.containsKey(op); Collection<Statement> pending = removed.get(op); if (contexts == null) { pending.add(new WildStatement(subj, pred, obj)); } else if (contexts.length == 0) { pending.add(new WildStatement(subj, pred, obj, wildContext)); } else { for (Resource ctx : contexts) { pending.add(new WildStatement(subj, pred, obj, ctx)); } } if (pending.size() % BLOCK_SIZE == 0 && !isActiveOperation()) { endUpdate(op); startUpdate(op); } } }
@Override public String toString() { StringBuilder sb = new StringBuilder(256); sb.append("("); sb.append(getSubject()); sb.append(", "); sb.append(getPredicate()); sb.append(", "); sb.append(getObject()); sb.append(")"); sb.append(" [").append(getContext()).append("]"); return sb.toString(); } }