Skip to content
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()
  1. ContainsKey returns a Boolean result.
  2. Get returns the referenced IncDesItem[V1], or null.
  3. GetValue returns the value, V, of the referenced IncDesItem[V1], or null.
  4. GetValue2 does a GetValue and then a Value on the result.
  5. Put returns the IncDesItem[V1] being replaced, or null.
  6. MakePut returns either an existing item or a newly created item.
  7. MakePutSet does a Set on the existing or newly created item and returns a result of null.
  8. MakePutMakeSet does a MakeSet on the existing or newly created IncDesIncDes and returns the newly created IncDes actor.
  9. PutInt, PutLong and PutString do a MakePutMakeSet and then a Set.
  10. Size returns an Int result, the number of key/item pairs in the nav map.
  11. Remove returns the item removed, or null. And
  12. Seq returns a Sequence[K, V] actor over the items of the nav map.
  13. ValuesSeq returns a Sequence[K, V1] actor over the values of the nav map.
  14. 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.

NavMapTest

tutorial

Clone this wiki locally