_metadata

trait _metadata[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
_metadata.scala
class java.lang.Object
trait scala.Matchable
class Any

Def

Tree description

Tree description

Returns a tree describing all flow trasformations

 ('a' <> 'z').~
    .take(_ > 'X')
    .map(_.toUpper)
    .parallel
    .docTree.tp

 // Output
  scalqa.val.stream.z.flow.parallel.Flow_asJavaStream@ncwo{}
    scalqa.lang.char.g.stream.z.map$Chars@uru4{raw=Char,fromRaw=Char}
      scalqa.lang.char.g.Stream$TakeStream$2@56u4{raw=Char,fromRaw=Char}
        scalqa.lang.char.g.stream.Z$Stream_fromRange@cq06{raw=Char,size=26,from=a,step=1}
Source
_metadata.scala
def isParallel: Boolean

Parallel check

Parallel check

Returns true if this Parallel is parallel

Source
_metadata.scala
@scala.annotation.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
_metadata.scala
@scala.annotation.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
_metadata.scala