Class/Object

com.snowplowanalytics.manifest.pure

PureManifest

Related Docs: object PureManifest | package pure

Permalink

case class PureManifest(resolver: Resolver) extends ProcessingManifest[PureManifestEffect] with Impl with Product with Serializable

Manifest implementation keeping all records in State monad. IO in type-signature should be ignored as required only by fs2.Stream#compile Use for tests only!

Linear Supertypes
Serializable, Serializable, Product, Equals, Impl, ProcessingManifest[PureManifestEffect], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PureManifest
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Impl
  7. ProcessingManifest
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PureManifest(resolver: Resolver)

    Permalink

Type Members

  1. implicit class PureManifestRunner[A] extends AnyRef

    Permalink
    Definition Classes
    Impl

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. val StartTime: Instant

    Permalink
    Definition Classes
    Impl
  5. def apply(records: List[Record]): PureManifestEffect[List[Record]]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  9. def fetch(processedBy: Option[Application], state: Option[State])(implicit F: ManifestAction[PureManifestEffect], S: Sync[PureManifestEffect]): Stream[PureManifestEffect, ItemId]

    Permalink
    Definition Classes
    PureManifestProcessingManifest
  10. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getItem(id: ItemId): PureManifestEffect[Option[Item]]

    Permalink

    Get state of single item, with validating state of Item

    Get state of single item, with validating state of Item

    Definition Classes
    PureManifestProcessingManifest
  13. def getItemS(id: ItemId): ManifestState[List[Record], Option[Item]]

    Permalink
    Definition Classes
    Impl
  14. def getUnprocessed(itemIds: Stream[PureManifestEffect, ItemId], predicate: (Item) ⇒ Boolean)(implicit S: Sync[PureManifestEffect]): PureManifestEffect[List[Item]]

    Permalink

    Get items from collection of ids that: + were processed by preprocessor application + were NOT yet processed by specified application + match predicate function + not in "blocked" or "failed" state

    Get items from collection of ids that: + were processed by preprocessor application + were NOT yet processed by specified application + match predicate function + not in "blocked" or "failed" state

    predicate

    filter function to get only valid Items, e.g. containing particular payload

    Definition Classes
    ProcessingManifest
  15. def id(num: Int): UUID

    Permalink
    Definition Classes
    Impl
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def listS: ManifestState[List[Record], List[Record]]

    Permalink
    Definition Classes
    Impl
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def processAll(app: Application, predicate: (Item) ⇒ Boolean, acquirePayload: Option[Payload], process: Process)(implicit S: Sync[PureManifestEffect]): PureManifestEffect[Unit]

    Permalink

    Apply Process function to all items unprocessed by app For each item, lock will be held.

    Apply Process function to all items unprocessed by app For each item, lock will be held. If any of items already holding a lock, function breaks immediately

    Definition Classes
    ProcessingManifest
  22. def processItem(app: Application, acquirePayload: Option[Payload], process: Process)(item: Item): PureManifestEffect[(UUID, Instant)]

    Permalink

    Acquire lock, apply processing function and write its result back to manifest

    Acquire lock, apply processing function and write its result back to manifest

    Definition Classes
    ProcessingManifest
  23. def processNewItem(id: ItemId, app: Application, acquirePayload: Option[Payload], process: ProcessNew): PureManifestEffect[Unit]

    Permalink

    Similar to processItem, but works without existing Item, instead it creates new one itself or queries it by known id Should be used when app is both adding item to manifest and processes it straight afterwards

    Similar to processItem, but works without existing Item, instead it creates new one itself or queries it by known id Should be used when app is both adding item to manifest and processes it straight afterwards

    id

    new item id, which should be either fetched or created

    app

    application doing discovering and processing

    acquirePayload

    optional payload that will be added as part of Processing, can be e.g. notification that app started to process it with some special configuration (cross-batch dedupe enabled)

    process

    Process that does not expect existing item

    Definition Classes
    ProcessingManifest
  24. def put(itemId: ItemId, app: Application, parentRecordId: Option[UUID], step: State, author: Option[Agent], payload: Option[Payload]): PureManifestEffect[(UUID, Instant)]

    Permalink

    Add an atomic record to manifest

    Add an atomic record to manifest

    Definition Classes
    PureManifestProcessingManifest
  25. def putS(itemId: ItemId, app: Application, parentRecordId: Option[UUID], step: State, author: Option[Agent], payload: Option[Payload]): ManifestState[List[Record], (UUID, Instant)]

    Permalink
    Definition Classes
    Impl
  26. def query(preparedBy: Option[Application], requester: Option[Application])(implicit S: Sync[PureManifestEffect]): Stream[PureManifestEffect, ItemId]

    Permalink

    Get ids of items that were processed by processedBy and NOT processed by application Most common kind of query for Processing Manifest.

    Get ids of items that were processed by processedBy and NOT processed by application Most common kind of query for Processing Manifest.

    Definition Classes
    ProcessingManifest
  27. val resolver: Resolver

    Permalink
    Definition Classes
    PureManifestProcessingManifest
  28. def seed(set: Set[_]): UUID

    Permalink
    Definition Classes
    Impl
  29. def stream(implicit S: Sync[PureManifestEffect]): Stream[PureManifestEffect, Record]

    Permalink

    Get full manifest

    Get full manifest

    Definition Classes
    PureManifestProcessingManifest
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def time(int: Int): Instant

    Permalink
    Definition Classes
    Impl
  32. def time(set: Set[_]): Instant

    Permalink
    Definition Classes
    Impl
  33. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Impl

Inherited from AnyRef

Inherited from Any

Ungrouped