com.twitter.summingbird.scalding.service

BatchedWindowService

trait BatchedWindowService[K, V] extends BatchedService[K, V]

This is a service that has a finite memory. There is a materialized stream on disk, but the service only serves the data if: 0 < t(incoming key) - t(service key) < t(window) To use this you need to implement: windowSize readStream batcher ordering reducers

Source
BatchedWindowService.scala
Linear Supertypes
BatchedService[K, V], ExternalService[K, V], Service[K, V], Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BatchedWindowService
  2. BatchedService
  3. ExternalService
  4. Service
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def batcher: Batcher

    Definition Classes
    BatchedService
  2. abstract def ordering: Ordering[K]

    Definition Classes
    BatchedService
  3. abstract def readStream(batchID: BatchID, mode: Mode): Option[FlowToPipe[(K, Option[V])]]

    Reads the key log for this batch.

    Reads the key log for this batch. By key log we mean a log of time, key and value when the key was written to. This is an associative operation and sufficient to scedule the service. This only has the keys that changed value during this batch.

    Definition Classes
    BatchedService
  4. abstract def reducers: Option[Int]

    Definition Classes
    BatchedService
  5. abstract def windowSize: Milliseconds

    A request must come in LESS than this window since the last key written to the service

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def batchedLookup[W](covers: Interval[Timestamp], getKeys: FlowToPipe[(K, W)], last: (BatchID, FlowProducer[TypedPipe[(K, V)]]), streams: Iterable[(BatchID, FlowToPipe[(K, Option[V])])]): FlowToPipe[(K, (W, Option[V]))]

    Attributes
    protected
    Definition Classes
    BatchedService
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. def lookup[W](incoming: TypedPipe[(Timestamp, (K, W))], servStream: TypedPipe[(Timestamp, (K, Option[V]))]): TypedPipe[(Timestamp, (K, (W, Option[V])))]

    This executes the join algortihm on the streams.

    This executes the join algortihm on the streams. You are guaranteed that all the service data needed to do the join is present

    Definition Classes
    BatchedWindowServiceBatchedService
  16. final def lookup[W](getKeys: PipeFactory[(K, W)]): PipeFactory[(K, (W, Option[V]))]

    Definition Classes
    BatchedServiceExternalService
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. def readLast(exclusiveUB: BatchID, mode: Mode): Try[(BatchID, FlowProducer[TypedPipe[(K, V)]])]

    The batched window never reads an aggregated last.

    The batched window never reads an aggregated last. Instead we just output an empty pipe that is outside the window.

    Definition Classes
    BatchedWindowServiceBatchedService
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from BatchedService[K, V]

Inherited from ExternalService[K, V]

Inherited from Service[K, V]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped