@Override public boolean accept( final CommonIndexModel indexModel, final IndexedPersistenceEncoding<?> persistenceEncoding) { if (!persistenceEncoding.isDeduplicationEnabled()) { // certain types of data such as raster do not intend to be // duplicated // short circuit this check if the row is does not support // deduplication return true; } if (!isDedupAcrossIndices() && !persistenceEncoding.isDuplicated()) { // short circuit this check if the row is not duplicated anywhere // and this is only intended to support a single index return true; } return applyDedupeFilter( persistenceEncoding.getInternalAdapterId(), new ByteArray(persistenceEncoding.getDataId())); }