@Override public void close() { if (source != null) { source.close(); } }
/** * @return the {@link RevTree} that represents the indexed tree */ public RevTree indexTree() { return indexdb.getTree(indexTree); }
@Override public void setBytes(byte[] bytes) { blobStore.putBlob(filterKey, bytes); } };
public ImmutableList<ObjectId> getParents(ObjectId commitId) throws IllegalArgumentException { synchronized (delegate) { return delegate.getParents(commitId); } }
public ObjectId getMapping(ObjectId commitId) { synchronized (delegate) { return delegate.getMapping(commitId); } }
public boolean put(ObjectId commitId, ImmutableList<ObjectId> parentIds) { synchronized (delegate) { return delegate.put(commitId, parentIds); } }
@Override public String getDisplayName() { return factory.getDisplayName() + "/LZF"; } }
/** * Releases all the references for this transaction, but does not close the original * {@link RefDatabase} */ @Override public void close() { refDb.removeAll(this.txNamespace); }
public void open() { synchronized (delegate) { delegate.open(); } }
public ImmutableList<ObjectId> getChildren(ObjectId commitId) throws IllegalArgumentException { synchronized (delegate) { return delegate.getChildren(commitId); } }
public GraphNode getNode(ObjectId id) { synchronized (delegate) { return delegate.getNode(id); } } }
/** * Pass through to {@link StagingDatabase}, replacing the namespace with the transaction * namespace. */ @Override public boolean hasConflicts(String namespace) { return database.hasConflicts(txNamespace); }
@Override public Void answer(InvocationOnMock invocation) throws Throwable { objectDatabase.open(); return null; } }).when(mockRepo).open();
@Override public boolean hasNext() { if (next == null) { next = computeNext(); } return next != null; }
@Override public void setBytes(byte[] bytes) { blobStore.putBlob(filterKey, bytes); } };