Class

net.scalytica.clammyscan

ChunkAggregationStage

Related Doc: package clammyscan

Permalink

class ChunkAggregationStage extends GraphStage[FlowShape[ByteString, ByteString]]

GraphStage that re-arranges incoming chunks into chunks of the specified

chunkSize

. It will aggregate bytes until enough elements have been processed to emit a new chunk of the correct size. The last chunk may be smaller than

chunkSize

.

When the stage has processed the

maxBytes

number of bytes, the file stream is too large, and the stage will signal downstream that it has completed. This allows downstream to complete and capture the expected response from clamd.

maxBytes }}} stream is too large, and the stage will signal downstream that it has completed. This allows downstream to complete and capture the expected response from clamd.

chunkSize }}}

When the stage has processed the

maxBytes

number of bytes, the file stream is too large, and the stage will signal downstream that it has completed. This allows downstream to complete and capture the expected response from clamd.

maxBytes }}} stream is too large, and the stage will signal downstream that it has completed. This allows downstream to complete and capture the expected response from clamd.

chunkSize }}} processed to emit a new chunk of the correct size. The last chunk may be smaller than

chunkSize

.

When the stage has processed the

maxBytes

number of bytes, the file stream is too large, and the stage will signal downstream that it has completed. This allows downstream to complete and capture the expected response from clamd.

maxBytes }}} stream is too large, and the stage will signal downstream that it has completed. This allows downstream to complete and capture the expected response from clamd.

chunkSize }}}

When the stage has processed the

maxBytes

number of bytes, the file stream is too large, and the stage will signal downstream that it has completed. This allows downstream to complete and capture the expected response from clamd.

maxBytes }}} stream is too large, and the stage will signal downstream that it has completed. This allows downstream to complete and capture the expected response from clamd.

Linear Supertypes
GraphStage[FlowShape[ByteString, ByteString]], GraphStageWithMaterializedValue[FlowShape[ByteString, ByteString], NotUsed], Graph[FlowShape[ByteString, ByteString], NotUsed], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ChunkAggregationStage
  2. GraphStage
  3. GraphStageWithMaterializedValue
  4. Graph
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ChunkAggregationStage(chunkSize: Int, maxBytes: Int)

    Permalink

    chunkSize

    Int specifying the desired max size of each chunk

    maxBytes

    Int specifying the max number of bytes to process

Type Members

  1. type Shape = FlowShape[ByteString, ByteString]

    Permalink
    Definition Classes
    Graph

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addAttributes(attr: Attributes): Graph[FlowShape[ByteString, ByteString], NotUsed]

    Permalink
    Definition Classes
    Graph
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def async: Graph[FlowShape[ByteString, ByteString], NotUsed]

    Permalink
    Definition Classes
    Graph
  7. val chunkSize: Int

    Permalink

    Int specifying the desired max size of each chunk

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def createLogic(inheritedAttributes: Attributes): GraphStageLogic

    Permalink
    Definition Classes
    ChunkAggregationStage → GraphStage
  10. final def createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, NotUsed)

    Permalink
    Definition Classes
    GraphStage → GraphStageWithMaterializedValue
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. val in: Inlet[ByteString]

    Permalink
  17. def initialAttributes: Attributes

    Permalink
    Definition Classes
    ChunkAggregationStage → GraphStageWithMaterializedValue
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. val maxBytes: Int

    Permalink

    Int specifying the max number of bytes to process

  20. def named(name: String): Graph[FlowShape[ByteString, ByteString], NotUsed]

    Permalink
    Definition Classes
    Graph
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. val out: Outlet[ByteString]

    Permalink
  25. def shape: FlowShape[ByteString, ByteString]

    Permalink
    Definition Classes
    ChunkAggregationStage → Graph
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def withAttributes(attr: Attributes): Graph[FlowShape[ByteString, ByteString], NotUsed]

    Permalink
    Definition Classes
    GraphStageWithMaterializedValue → Graph

Inherited from GraphStage[FlowShape[ByteString, ByteString]]

Inherited from GraphStageWithMaterializedValue[FlowShape[ByteString, ByteString], NotUsed]

Inherited from Graph[FlowShape[ByteString, ByteString], NotUsed]

Inherited from AnyRef

Inherited from Any

Ungrouped