Interface InMemStorage<K,​R>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void add​(K key, R p)  
      void add​(K key, scala.collection.immutable.Seq<R> elems)
      Adds elements ordered by seqnum, sets new seqnum as max(old, max(newElemsSeqNums)))
      void clearAll()  
      void clearAllPreservingSeqNumbers()  
      scala.collection.immutable.Vector<R> delete​(K key, scala.Function1<R,​java.lang.Object> needsToBeDeleted)
      Deletes elements preserving highest sequence number.
      void deleteToSeqNumber​(K key, long toSeqNumberInclusive)  
      scala.Option<scala.collection.immutable.Vector<R>> findMany​(K key, int fromInclusive, int maxNum)  
      scala.Option<R> findOneByIndex​(K key, int index)  
      long getHighestSeqNumber​(K key)  
      long getLastSeqNumber​(scala.collection.immutable.Seq<R> elems)  
      scala.Option<scala.collection.immutable.Vector<R>> read​(K key)  
      scala.collection.immutable.Seq<R> read​(K key, long fromInclusive, long toInclusive, long maxNumber)
      Reads elems within the range of seqnums.
      scala.collection.immutable.Vector<R> removeKey​(K key)
      Removes key and the whole value including seqnum.
      void removePreservingSeqNumber​(K key)  
      long reprToSeqNum​(R repr)  
      scala.collection.immutable.Vector<R> updateOrSetNew​(K key, scala.Function1<scala.collection.immutable.Vector<R>,​scala.collection.immutable.Vector<R>> updater)
      Sets new elements returned by updater ordered by seqnum.
    • Method Detail

      • add

        void add​(K key,
                 R p)
      • add

        void add​(K key,
                 scala.collection.immutable.Seq<R> elems)
        Adds elements ordered by seqnum, sets new seqnum as max(old, max(newElemsSeqNums)))
      • clearAll

        void clearAll()
      • clearAllPreservingSeqNumbers

        void clearAllPreservingSeqNumbers()
      • delete

        scala.collection.immutable.Vector<R> delete​(K key,
                                                    scala.Function1<R,​java.lang.Object> needsToBeDeleted)
        Deletes elements preserving highest sequence number.
      • deleteToSeqNumber

        void deleteToSeqNumber​(K key,
                               long toSeqNumberInclusive)
      • findMany

        scala.Option<scala.collection.immutable.Vector<R>> findMany​(K key,
                                                                    int fromInclusive,
                                                                    int maxNum)
      • findOneByIndex

        scala.Option<R> findOneByIndex​(K key,
                                       int index)
      • getHighestSeqNumber

        long getHighestSeqNumber​(K key)
      • getLastSeqNumber

        long getLastSeqNumber​(scala.collection.immutable.Seq<R> elems)
      • read

        scala.Option<scala.collection.immutable.Vector<R>> read​(K key)
      • read

        scala.collection.immutable.Seq<R> read​(K key,
                                               long fromInclusive,
                                               long toInclusive,
                                               long maxNumber)
        Reads elems within the range of seqnums.
      • removeKey

        scala.collection.immutable.Vector<R> removeKey​(K key)
        Removes key and the whole value including seqnum.
      • removePreservingSeqNumber

        void removePreservingSeqNumber​(K key)
      • reprToSeqNum

        long reprToSeqNum​(R repr)
      • updateOrSetNew

        scala.collection.immutable.Vector<R> updateOrSetNew​(K key,
                                                            scala.Function1<scala.collection.immutable.Vector<R>,​scala.collection.immutable.Vector<R>> updater)
        Sets new elements returned by updater ordered by seqnum. Sets new seqnum as max(old, max(newElemsFromUpdaterSeqNums))