All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.iteration.impl.EntryIterableFromStreamImpl Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
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 filter, EnumSet flags, Cache cache) {
      super(filter, null, flags, cache);
   }

   @Override
   public  CloseableIterable> converter(Converter converter) {
      return new TrackingEntryIterableFromStream<>(filter, converter, null, cache);
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy