~.Flow._info
Metadata Interface
Metadata is a static knowledge about stream flow elements to be delivered
Metadata methods can be called many times, they do not trigger any data movements
- Source
- _info.scala
Def
Text description
Text description
Returns a tree formatted text describing all stream flow trasformations
('a' <> 'z').~
.take(_ > 'X')
.map(_.toUpper)
.parallel
.describe.tp
// Output
scalqa.val.stream.z.flow.parallel.Flow_asJavaStream@ncwo{}
scalqa.def.char.g.stream.z.map$Chars@uru4{raw=Char,fromRaw=Char}
scalqa.def.char.g.Stream$TakeStream$2@56u4{raw=Char,fromRaw=Char}
scalqa.def.char.g.stream.Z$Stream_fromRange@cq06{raw=Char,size=26,from=a,step=1}
- Source
- _info.scala
@targetName("size_Opt")
Optional size
Optional size
Many streams can return their current element count. If the information is not available, void option is returned
Note: If size is known, but exceeds integer range, void option is returned. For theses cases use sizeLong_?
var s = ('a' <> 'z').~
s.size_?.tp // Prints Int.Opt(26)
s = s.take(_ > 10) // static sizing is lost
s.size_?.tp // Prints Int.Opt(\/)
- Source
- _info.scala
@targetName("sizeLong_Opt")
Optional long size
Optional long size
Many streams can return their current element count. If the information is not available, void option is returned
var s = (Int.min.Long <> Int.max.Long).~
s.sizeLong_?.tp // Prints Long.Opt(4294967296)
s = s.take(_ > 10) // static sizing is lost
s.sizeLong_?.tp // Prints Long.Opt(\/)
- Source
- _info.scala