Class RemoteDataInterface<T>

  • All Implemented Interfaces:
    DataInterface<T>, be.bagofwords.iterator.DataIterable<be.bagofwords.util.KeyValue<T>>, Iterable<be.bagofwords.util.KeyValue<T>>

    public class RemoteDataInterface<T>
    extends BaseDataInterface<T>
    • Constructor Detail

      • RemoteDataInterface

        public RemoteDataInterface​(String name,
                                   Class<T> objectClass,
                                   Combinator<T> combinator,
                                   ObjectSerializer<T> objectSerializer,
                                   String host,
                                   int port,
                                   boolean isTemporaryDataInterface,
                                   be.bagofwords.jobs.AsyncJobService asyncJobService)
    • Method Detail

      • read

        public T read​(long key)
      • mightContain

        public boolean mightContain​(long key)
      • apprSize

        public long apprSize()
      • write

        public void write​(long key,
                          T value)
      • write

        public void write​(be.bagofwords.iterator.CloseableIterator<be.bagofwords.util.KeyValue<T>> entries)
      • iterator

        public be.bagofwords.iterator.CloseableIterator<be.bagofwords.util.KeyValue<T>> iterator​(be.bagofwords.iterator.CloseableIterator<Long> keyIterator)
      • iterator

        public be.bagofwords.iterator.CloseableIterator<be.bagofwords.util.KeyValue<T>> iterator()
      • iterator

        public be.bagofwords.iterator.CloseableIterator<be.bagofwords.util.KeyValue<T>> iterator​(KeyFilter keyFilter)
      • valueIterator

        public be.bagofwords.iterator.CloseableIterator<T> valueIterator​(KeyFilter keyFilter)
      • iterator

        public be.bagofwords.iterator.CloseableIterator<be.bagofwords.util.KeyValue<T>> iterator​(java.util.function.Predicate<T> valueFilter)
      • valueIterator

        public be.bagofwords.iterator.CloseableIterator<T> valueIterator​(java.util.function.Predicate<T> valueFilter)
      • keyIterator

        public be.bagofwords.iterator.CloseableIterator<Long> keyIterator()
      • cachedValueIterator

        public be.bagofwords.iterator.CloseableIterator<be.bagofwords.util.KeyValue<T>> cachedValueIterator()
      • dropAllData

        public void dropAllData()
      • flush

        public void flush()
      • optimizeForReading

        public void optimizeForReading()
      • registerUpdateListener

        public void registerUpdateListener​(UpdateListener<T> updateListener)