Class InMemoryDataInterface<T>

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

    public class InMemoryDataInterface<T>
    extends CoreDataInterface<T>
    • Constructor Detail

      • InMemoryDataInterface

        public InMemoryDataInterface​(String name,
                                     Class<T> objectClass,
                                     Combinator<T> combinator)
    • Method Detail

      • read

        public T read​(long key)
      • 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()
      • dropAllData

        public void dropAllData()
      • apprSize

        public long apprSize()
      • keyIterator

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

        public void optimizeForReading()
      • mightContain

        public boolean mightContain​(long key)