Skip to content
laforge49 edited this page Oct 10, 2011 · 19 revisions

IncDesList is an incrementally deserialize list of items and it has 6 IncDesList factories, one for each of the IncDes items.

IncDesList[V, V1] supports 10 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 Add[V <: IncDesItem[V1], V1](transactionContext: TransactionContext, value: V)
case class Insert[V <: IncDesItem[V1], V1](transactionContext: TransactionContext, index: Int, value: V)
case class Size()
case class Remove[Int](transactionContext: TransactionContext, key: Int)
case class Seq()
case class ValuesSeq()
case class FlatValuesSeq()
  1. The result from ContainsKey is a Boolean.
  2. Get returns the selected IncDesItem[V1].
  3. GetValue returns the value, V1, of the selected IncDesItem[V1].
  4. GetValue2 does a GetValue and then a Value on the result.
  5. Add returns a result of null.
  6. Insert returns a null.
  7. Size returns an Int--the number of items in the list.
  8. Remove returns the IncDesItem[V1] removed, or null. And
  9. Seq returns a Sequence[Int, V] actor over the items of the list.
  10. ValuesSeq returns a Sequence[Int, V1] actor over the values of the list.
  11. FlatValuesSeq returns a Sequence[Int, V1] actor over the values of the list, but excludes null values.

GetValue2 is only bound to lists of IncDesIncDes objects.

ListTest

tutorial

Clone this wiki locally