-
Notifications
You must be signed in to change notification settings - Fork 1
IncDesNavMap
laforge49 edited this page Oct 10, 2011
·
17 revisions
IncDesNavMap is an incrementally deserialize TreeMap of IncDes items. There are 3 types of supported keys, Int, Long and String, and all 6 of the IncDes items are supported as values, giving us 18 IncDesNavMap factories in all.
IncDesNavMap[K, V <: IncDes, V1] supports 12 types of messages, in addition to the Length, Bytes and Copy messages which are supported by all IncDes actors.
case class ContainsKey[K](key: K)
case class Get[K](key: K)
case class GetValue[K](key: K)
case class GetValue2[K](key: K)
case class Put[K, V <: IncDesItem[V1], V1](transactionContext: TransactionContext, key: K, value: V)
case class MakePut[K](transactionContext: TransactionContext, key: K)
case class MakePutSet[K, V1](transactionContext: TransactionContext, key: K, value: V1)
case class MakePutMakeSet[K](transactionContext: TransactionContext, key: K, factoryId: FactoryId)
case class PutInt[K](transactionContext: TransactionContext, key: K, value: Int)
case class PutLong[K](transactionContext: TransactionContext, key: K, value: Long)
case class PutString[K](transactionContext: TransactionContext, key: K, value: String)
case class Size()
case class Remove[Int](transactionContext: TransactionContext, key: Int)
case class Seq()
case class ValuesSeq()
case class FlatValuesSeq()
- ContainsKey returns a Boolean result.
- Get returns the referenced IncDesItem[V1], or null.
- GetValue returns the value, V, of the referenced IncDesItem[V1], or null.
- GetValue2 does a GetValue and then a Value on the result.
- Put returns the IncDesItem[V1] being replaced, or null.
- MakePut returns either an existing item or a newly created item.
- MakePutSet does a Set on the existing or newly created item and returns a result of null.
- MakePutMakeSet does a MakeSet on the existing or newly created IncDesIncDes and returns the newly created IncDes actor.
- PutInt, PutLong and PutString do a MakePutMakeSet and then a Set.
- Size returns an Int result, the number of key/item pairs in the nav map.
- Remove returns the item removed, or null. And
- Seq returns a Sequence[K, V] actor over the items of the nav map.
- ValuesSeq returns a Sequence[K, V1] actor over the values of the nav map.
- FlatValuesSeq returns a Sequence[K, V1] actor over the values of the nav map, but excludes null values.
GetValue2, MakePutMakeSet, PutInt, PutLong and PutString are only bound to IncDesNavMap[_, IncDesIncDes, IncDes] objects.