This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* CRUD | |
**/ | |
def put(employee : Employee) : Future[Option[Either[DynamoReadError, Employee]]] = | |
ScanamoAlpakka.put[Employee](client)(TableName)(employee) | |
def get(name : String, id : Long) : Future[Option[Either[DynamoReadError, Employee]]] = | |
ScanamoAlpakka.get[Employee](client)(TableName)('name -> name and 'id -> id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dataset Description | |
Column1: Movie ID, | |
Column2: Movie name, | |
Column3: Year of release, | |
Column4: Rating of the movie, | |
Column5: Movie duration in seconds |
We can't make this file beautiful and searchable because it's too large.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,The Nightmare Before Christmas,1993,3.9,4568 | |
2,The Mummy,1932,3.5,4388 | |
3,Orphans of the Storm,1921,3.2,9062 | |
4,The Object of Beauty,1991,2.8,6150 | |
5,Night Tide,1963,2.8,5126 | |
6,One Magic Christmas,1985,3.8,5333 | |
7,Muriel's Wedding,1994,3.5,6323 | |
8,Mother's Boys,1994,3.4,5733 | |
9,Nosferatu: Original Version,1929,3.5,5651 | |
10,Nick of Time,1995,3.4,5333 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sample.akka.testkit | |
import akka.actor.ActorSystem | |
import akka.actor.Actor | |
import akka.testkit.{TestKit, TestActorRef} | |
import org.scalatest.matchers.MustMatchers | |
import org.scalatest.WordSpec | |
class ImplicitSenderTest extends TestKit(ActorSystem("testSystem")) | |
// Using the ImplicitSender trait will automatically set `testActor` as the sender |