Decoder

meteor.codec.Decoder
See theDecoder companion object
trait Decoder[A]

Provides a decoding function for a given type, attempt to read an Java AttributeValue into type A

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Codec[A]

Members list

Value members

Abstract methods

def read(av: AttributeValue): Either[DecoderError, A]
Implicitly added by dynamoDecoderForList

Attempt to read an AttributeValue to a value of type A

Attempt to read an AttributeValue to a value of type A

Value parameters

av

Java attribute value object

Attributes

Returns

either a value of type A or a decoder error

def read(av: AttributeValue): Either[DecoderError, A]
Implicitly added by dynamoDecoderForMap

Attempt to read an AttributeValue to a value of type A

Attempt to read an AttributeValue to a value of type A

Value parameters

av

Java attribute value object

Attributes

Returns

either a value of type A or a decoder error

def read(av: AttributeValue): Either[DecoderError, A]
Implicitly added by dynamoDecoderForSeq

Attempt to read an AttributeValue to a value of type A

Attempt to read an AttributeValue to a value of type A

Value parameters

av

Java attribute value object

Attributes

Returns

either a value of type A or a decoder error

def read(av: AttributeValue): Either[DecoderError, A]

Attempt to read an AttributeValue to a value of type A

Attempt to read an AttributeValue to a value of type A

Value parameters

av

Java attribute value object

Attributes

Returns

either a value of type A or a decoder error

Concrete methods

def emap[B](f: A => Either[DecoderError, B]): Decoder[B]
Implicitly added by dynamoDecoderForList

Create a new decoder given a transformation from A to either B or a decoder error

Create a new decoder given a transformation from A to either B or a decoder error

Value parameters

f

a function returning either a value or an error message

Attributes

Returns

a new Decoder of type B

def emap[B](f: A => Either[DecoderError, B]): Decoder[B]
Implicitly added by dynamoDecoderForMap

Create a new decoder given a transformation from A to either B or a decoder error

Create a new decoder given a transformation from A to either B or a decoder error

Value parameters

f

a function returning either a value or an error message

Attributes

Returns

a new Decoder of type B

def emap[B](f: A => Either[DecoderError, B]): Decoder[B]
Implicitly added by dynamoDecoderForSeq

Create a new decoder given a transformation from A to either B or a decoder error

Create a new decoder given a transformation from A to either B or a decoder error

Value parameters

f

a function returning either a value or an error message

Attributes

Returns

a new Decoder of type B

def emap[B](f: A => Either[DecoderError, B]): Decoder[B]

Create a new decoder given a transformation from A to either B or a decoder error

Create a new decoder given a transformation from A to either B or a decoder error

Value parameters

f

a function returning either a value or an error message

Attributes

Returns

a new Decoder of type B

def read(av: Map[String, AttributeValue]): Either[DecoderError, A]
Implicitly added by dynamoDecoderForList

Attempt to read a Map of String and AttributeValue to a value of type A

Attempt to read a Map of String and AttributeValue to a value of type A

Value parameters

av

Java Map of String and AttributeValue

Attributes

Returns

either a value of type A or a decoder error

def read(av: Map[String, AttributeValue]): Either[DecoderError, A]
Implicitly added by dynamoDecoderForMap

Attempt to read a Map of String and AttributeValue to a value of type A

Attempt to read a Map of String and AttributeValue to a value of type A

Value parameters

av

Java Map of String and AttributeValue

Attributes

Returns

either a value of type A or a decoder error

def read(av: Map[String, AttributeValue]): Either[DecoderError, A]
Implicitly added by dynamoDecoderForSeq

Attempt to read a Map of String and AttributeValue to a value of type A

Attempt to read a Map of String and AttributeValue to a value of type A

Value parameters

av

Java Map of String and AttributeValue

Attributes

Returns

either a value of type A or a decoder error

def read(av: Map[String, AttributeValue]): Either[DecoderError, A]

Attempt to read a Map of String and AttributeValue to a value of type A

Attempt to read a Map of String and AttributeValue to a value of type A

Value parameters

av

Java Map of String and AttributeValue

Attributes

Returns

either a value of type A or a decoder error