@Override public boolean accept( final CommonIndexModel indexModel, final IndexedPersistenceEncoding persistenceEncoding) { return dataIds.contains(new ByteArray(persistenceEncoding.getDataId())); }
@Override public boolean accept( final CommonIndexModel indexModel, final IndexedPersistenceEncoding persistenceEncoding) { return Objects.deepEquals( partitionKey, persistenceEncoding.getInsertionPartitionKey() != null ? persistenceEncoding.getInsertionPartitionKey() : new byte[] {}) && Objects.deepEquals( sortKey, persistenceEncoding.getInsertionSortKey() != null ? persistenceEncoding.getInsertionSortKey() : new byte[] {}) && Objects.deepEquals( dataId, persistenceEncoding.getDataId() != null ? persistenceEncoding.getDataId() : new byte[] {}); }
@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())); }
new IndexedAdapterPersistenceEncoding( persistenceEncoding.getInternalAdapterId(), persistenceEncoding.getDataId(), persistenceEncoding.getInsertionPartitionKey(), persistenceEncoding.getInsertionSortKey(),