@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ReferencedBlob that = (ReferencedBlob) o; if (!getBlob().equals(that.getBlob())) { return false; } return !(getId() != null ? !getId().equals(that.getId()) : that.getId() != null); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ReferencedBlob that = (ReferencedBlob) o; if (!getBlob().equals(that.getBlob())) { return false; } return !(getId() != null ? !getId().equals(that.getId()) : that.getId() != null); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ReferencedBlob that = (ReferencedBlob) o; if (!getBlob().equals(that.getBlob())) { return false; } return !(getId() != null ? !getId().equals(that.getId()) : that.getId() != null); }
@Override public void collectReferences(ReferenceCollector collector) { int referencesFound = 0; Iterator<ReferencedBlob> blobIterator = null; try { blobIterator = nodeStore.getReferencedBlobsIterator(); while (blobIterator.hasNext()) { ReferencedBlob refBlob = blobIterator.next(); Blob blob = refBlob.getBlob(); referencesFound++; // TODO this mode would also add in memory blobId // Would that be an issue if (blob instanceof BlobStoreBlob) { collector.addReference(((BlobStoreBlob) blob).getBlobId(), refBlob.getId()); } else { // TODO Should not rely on toString. Instead obtain // secure reference and convert that to blobId using // blobStore collector.addReference(blob.toString(), refBlob.getId()); } } } finally { Utils.closeIfCloseable(blobIterator); } log.debug("Total blob references found (including chunk resolution) [{}]", referencesFound); } }
@Override public void collectReferences(ReferenceCollector collector) { int referencesFound = 0; Iterator<ReferencedBlob> blobIterator = null; try { blobIterator = nodeStore.getReferencedBlobsIterator(); while (blobIterator.hasNext()) { ReferencedBlob refBlob = blobIterator.next(); Blob blob = refBlob.getBlob(); referencesFound++; // TODO this mode would also add in memory blobId // Would that be an issue if (blob instanceof BlobStoreBlob) { collector.addReference(((BlobStoreBlob) blob).getBlobId(), refBlob.getId()); } else { // TODO Should not rely on toString. Instead obtain // secure reference and convert that to blobId using // blobStore collector.addReference(blob.toString(), refBlob.getId()); } } } finally { Utils.closeIfCloseable(blobIterator); } log.debug("Total blob references found (including chunk resolution) [{}]", referencesFound); } }