class InMemoryHITDataService extends HITDataService
Simple in-memory implementation of HITDataService for use in testing and sample tasks.
- Alphabetic
- By Inheritance
- InMemoryHITDataService
- HITDataService
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new InMemoryHITDataService()
Type Members
- case class HITStore(hit: HIT[String], approved: List[Assignment[String]], rejected: List[Assignment[String]]) extends Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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.
Get all saved HIT data for a given HIT Type.
- Definition Classes
- InMemoryHITDataService → HITDataService
-
def
getAssignmentsForHIT[Response](hitTypeId: String, hitId: String)(implicit arg0: Decoder[Response]): Try[List[Assignment[Response]]]
Get all assignments for a given HIT.
Get all assignments for a given HIT.
- Definition Classes
- InMemoryHITDataService → HITDataService
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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.)
- Definition Classes
- InMemoryHITDataService → HITDataService
-
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.
Get a saved HIT and all data relevant to that HIT.
- Definition Classes
- InMemoryHITDataService → HITDataService
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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.
- Definition Classes
- InMemoryHITDataService → HITDataService
-
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.
- Definition Classes
- InMemoryHITDataService → HITDataService
-
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.
- Definition Classes
- InMemoryHITDataService → HITDataService
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- object HITStore extends Serializable