PNCounterMap

Map of named counters. Specialized ORMap with PNCounter values.

This class is immutable, i.e. "modifying" methods return a new instance.

Companion:
object
Source:
PNCounterMap.scala
trait Serializable
class Object
trait Matchable
class Any

Type members

Types

Value members

Concrete methods

def decrement(node: SelfUniqueAddress, key: A, delta: Long): PNCounterMap[A]

Decrement the counter with the delta specified. If the delta is negative then it will increment instead of decrement. TODO add implicit after deprecated is EOL.

Decrement the counter with the delta specified. If the delta is negative then it will increment instead of decrement. TODO add implicit after deprecated is EOL.

Source:
PNCounterMap.scala
def decrementBy(key: A, delta: Long)(implicit node: SelfUniqueAddress): PNCounterMap[A]

Decrement the counter with the delta specified. If the delta is negative then it will increment instead of decrement. TODO add implicit after deprecated is EOL.

Decrement the counter with the delta specified. If the delta is negative then it will increment instead of decrement. TODO add implicit after deprecated is EOL.

Source:
PNCounterMap.scala
override def delta: Option[D]
Definition Classes
Source:
PNCounterMap.scala
def entries: Map[A, BigInt]

Scala API

Scala API

Source:
PNCounterMap.scala
override def equals(o: Any): Boolean
Definition Classes
Any
Source:
PNCounterMap.scala
def get(key: A): Option[BigInt]

Scala API: The count for a key

Scala API: The count for a key

Source:
PNCounterMap.scala
def getEntries: Map[A, BigInteger]

Java API

Java API

Source:
PNCounterMap.scala
def getValue(key: A): BigInteger

Java API: The count for a key, or null if it doesn't exist

Java API: The count for a key, or null if it doesn't exist

Source:
PNCounterMap.scala
override def hashCode: Int
Definition Classes
Any
Source:
PNCounterMap.scala
def increment(key: A, delta: Long)(implicit node: Cluster): PNCounterMap[A]

Increment the counter with the delta specified. If the delta is negative then it will decrement instead of increment.

Increment the counter with the delta specified. If the delta is negative then it will decrement instead of increment.

Source:
PNCounterMap.scala
def increment(node: SelfUniqueAddress, key: A, delta: Long): PNCounterMap[A]

Increment the counter with the delta specified. If the delta is negative then it will decrement instead of increment.

Increment the counter with the delta specified. If the delta is negative then it will decrement instead of increment.

Source:
PNCounterMap.scala
def incrementBy(key: A, delta: Long)(implicit node: SelfUniqueAddress): PNCounterMap[A]

Increment the counter with the delta specified. If the delta is negative then it will decrement instead of increment.

Increment the counter with the delta specified. If the delta is negative then it will decrement instead of increment.

Source:
PNCounterMap.scala
override def merge(that: PNCounterMap[A]): PNCounterMap[A]
Definition Classes
Source:
PNCounterMap.scala
override def mergeDelta(thatDelta: D): PNCounterMap[A]
Definition Classes
Source:
PNCounterMap.scala
override def needPruningFrom(removedNode: UniqueAddress): Boolean
Definition Classes
Source:
PNCounterMap.scala
override def prune(removedNode: UniqueAddress, collapseInto: UniqueAddress): PNCounterMap[A]
Definition Classes
Source:
PNCounterMap.scala
override def pruningCleanup(removedNode: UniqueAddress): PNCounterMap[A]
Definition Classes
Source:
PNCounterMap.scala
def remove(key: A)(implicit node: SelfUniqueAddress): PNCounterMap[A]

Removes an entry from the map. Note that if there is a conflicting update on another node the entry will not be removed after merge.

Removes an entry from the map. Note that if there is a conflicting update on another node the entry will not be removed after merge.

Source:
PNCounterMap.scala
override def resetDelta: PNCounterMap[A]
Definition Classes
Source:
PNCounterMap.scala
override def toString: String
Definition Classes
Any
Source:
PNCounterMap.scala

Deprecated methods

@deprecated("Use `remove` that takes a `SelfUniqueAddress` parameter instead.", since = "2.5.20")
def -(key: A)(implicit node: Cluster): PNCounterMap[A]
Deprecated
[Since version 2.5.20]
Source:
PNCounterMap.scala
@deprecated("Use `decrement` that takes a `SelfUniqueAddress` parameter instead.", since = "2.5.20")
def decrement(key: A, delta: Long)(implicit node: Cluster): PNCounterMap[A]
Deprecated
[Since version 2.5.20]
Source:
PNCounterMap.scala
@deprecated("Use `decrement` that takes a `SelfUniqueAddress` parameter instead.", since = "2.5.20")
def decrement(node: Cluster, key: A, delta: Long): PNCounterMap[A]

Decrement the counter with the delta specified. If the delta is negative then it will increment instead of decrement.

Decrement the counter with the delta specified. If the delta is negative then it will increment instead of decrement.

Deprecated
[Since version 2.5.20]
Source:
PNCounterMap.scala
@deprecated("Use `increment` that takes a `SelfUniqueAddress` parameter instead.", since = "2.5.20")
def increment(node: Cluster, key: A, delta: Long): PNCounterMap[A]
Deprecated
[Since version 2.5.20]
Source:
PNCounterMap.scala
@deprecated("Use `remove` that takes a `SelfUniqueAddress` parameter instead.", since = "2.5.20")
def remove(node: Cluster, key: A): PNCounterMap[A]
Deprecated
[Since version 2.5.20]
Source:
PNCounterMap.scala