
org.infinispan.iteration.impl.EntryIterableFromStreamImpl Maven / Gradle / Ivy
package org.infinispan.iteration.impl;
import org.infinispan.Cache;
import org.infinispan.commons.util.CloseableIterable;
import org.infinispan.container.entries.CacheEntry;
import org.infinispan.context.Flag;
import org.infinispan.filter.Converter;
import org.infinispan.filter.KeyValueFilter;
import org.infinispan.iteration.EntryIterable;
import java.util.EnumSet;
/**
* This is an implementation that allows for creating new EntryIterable instances by supplying a new converter.
*
* @author wburns
* @since 7.0
*/
public class EntryIterableFromStreamImpl extends TrackingEntryIterableFromStream implements EntryIterable {
public EntryIterableFromStreamImpl(KeyValueFilter super K, ? super V> filter, EnumSet flags, Cache cache) {
super(filter, null, flags, cache);
}
@Override
public CloseableIterable> converter(Converter super K, ? super V, C> converter) {
return new TrackingEntryIterableFromStream<>(filter, converter, null, cache);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy