Packages

t

spacro

HITDataService

trait HITDataService extends AnyRef

API for services that store the data returned by workers across HITs on MTurk. Semantics are append-only; you can save HITs and Assignments and get them later, but cannot delete any data.

Not expected to be thread-safe in general. TODO: implement this using the interpreter pattern instead.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HITDataService
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getAllHITInfo[Prompt, Response](hitTypeId: String)(implicit arg0: Decoder[Prompt], arg1: Decoder[Response]): Try[List[HITInfo[Prompt, Response]]]

    Get all saved HIT data for a given HIT Type.

  2. abstract def getAssignmentsForHIT[Response](hitTypeId: String, hitId: String)(implicit arg0: Decoder[Response]): Try[List[Assignment[Response]]]

    Get all assignments for a given HIT.

  3. abstract def getHIT[Prompt](hitTypeId: String, hitId: String)(implicit arg0: Decoder[Prompt]): Try[HIT[Prompt]]

    Get a stored HIT by its HIT Type ID and HIT ID, which together uniquely identify it.

    Get a stored HIT by its HIT Type ID and HIT ID, which together uniquely identify it. (HIT ID may already be unique; I'm not sure.)

  4. abstract def getHITInfo[Prompt, Response](hitTypeId: String, hitId: String)(implicit arg0: Decoder[Prompt], arg1: Decoder[Response]): Try[HITInfo[Prompt, Response]]

    Get a saved HIT and all data relevant to that HIT.

  5. abstract def saveApprovedAssignment[Response](assignment: Assignment[Response])(implicit arg0: Encoder[Response]): Try[Unit]

    Save the data of an assignment that has been approved on MTurk.

    Save the data of an assignment that has been approved on MTurk. Should happen directly after the assignment is approved.

  6. abstract def saveHIT[Prompt](hit: HIT[Prompt])(implicit arg0: Encoder[Prompt]): Try[Unit]

    Save a HIT that has been uploaded to MTurk.

    Save a HIT that has been uploaded to MTurk. This should happen directly after successful HIT creation.

  7. abstract def saveRejectedAssignment[Response](assignment: Assignment[Response])(implicit arg0: Encoder[Response]): Try[Unit]

    Save the data of an assignment that has been rejected on MTurk.

    Save the data of an assignment that has been rejected on MTurk. Should happen directly after the assignment is rejected.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped