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

org.infinispan.iteration.impl.EntryIterableImpl 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;
import java.util.Map;

/**
 * This is an implementation that allows for creating new EntryIterable instances by supplying a new converter.
 *
 * @author wburns
 * @since 7.0
 */
public class EntryIterableImpl extends TrackingEntryIterable implements EntryIterable {
   public EntryIterableImpl(EntryRetriever entryRetriver, KeyValueFilter filter,
                            EnumSet flags, Cache cache) {
      super(entryRetriver, filter, null, flags, cache);
   }

   @Override
   public  CloseableIterable> converter(Converter converter) {
      return new TrackingEntryIterable<>(entryRetriever, filter, converter, flags, cache);
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy