/** * Remove the key with the given key, e.g. when a statement is again deleted during a transaction. * * @param key the key identifying the triple arguments (subject, object, predicate, context) */ @Override public void deleteKey(IntArray key) { cache.remove(key.longHashCode()); } }
public void maybeFlushBatch() throws SQLException { if (tripleBatch.size() >= batchSize) { flushBatch(); } }
public TransactionData() { transactionId = "TX-" + UUID.randomUUID().toString(); removedTriples = new TripleTable<>(); addedTriples = new TripleTable<>(); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; TransactionData that = (TransactionData) o; if (!addedTriples.equals(that.addedTriples)) return false; if (!removedTriples.equals(that.removedTriples)) return false; return true; }
public long longHashCode() { ensureLongHashCode(); return hashCode64.asLong(); } }
@Override public int hashCode() { ensureHashCode(); return hashCode32.asInt(); }
public void maybeFlushBatch() throws SQLException { if (tripleBatch.size() >= batchSize) { flushBatch(); } }
public TransactionData() { transactionId = "TX-" + UUID.randomUUID().toString(); removedTriples = new TripleTable<>(); addedTriples = new TripleTable<>(); }
/** * Remove the key with the given key, e.g. when a statement is again deleted during a transaction. * * @param key the key identifying the triple arguments (subject, object, predicate, context) */ @Override public void deleteKey(IntArray key) { cache.remove(key.longHashCode()); } }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; TransactionData that = (TransactionData) o; if (!addedTriples.equals(that.addedTriples)) return false; if (!removedTriples.equals(that.removedTriples)) return false; return true; }
public long longHashCode() { ensureLongHashCode(); return hashCode64.asLong(); } }
@Override public int hashCode() { ensureHashCode(); return hashCode32.asInt(); }
/** * Remove the key with the given key, e.g. when a statement is again deleted during a transaction. * * @param key the key identifying the triple arguments (subject, object, predicate, context) */ @Override public void deleteKey(IntArray key) { cache.remove(key.longHashCode()); } }
/** * Remove the key with the given key, e.g. when a statement is again deleted during a transaction. * * @param key the key identifying the triple arguments (subject, object, predicate, context) */ @Override public void deleteKey(IntArray key) { cache.remove(key.longHashCode()); } }