~.Flow._info

trait _info[A]

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
class Object
trait Matchable
class Any

Def

def describe: String

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
def isParallel: Boolean

Parallel check

Parallel check

Returns true if this Parallel is parallel

Source
_info.scala
@targetName("size_Opt")
def 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