Skip to content
This repository was archived by the owner on Jul 7, 2021. It is now read-only.
This repository was archived by the owner on Jul 7, 2021. It is now read-only.

Make a PersistedProducer interface #17

@schmmd

Description

@schmmd

In src/main/scala/org/allenai/pipeline/Producer.scala:

> @@ -125,7 +156,7 @@ trait CachingDisabled extends CachingEnabled {
>    override def cachingEnabled: Boolean = false
>  }
>  
> -class PersistedProducer[T, -A <: Artifact](
> +class PersistedProducer[T, -A <: Artifact] private[pipeline] (

The Producer.persist method returns a PersistedProducer not a simple Producer This really should be changed to return an interface instead of a concrete class. The only additional thing that PersistedProducer exposes is the Artifact that the data was saved to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions