SecondaryCompositeIndex

meteor.api.hi.SecondaryCompositeIndex
case class SecondaryCompositeIndex[F[_], P, S](tableName: String, indexName: String, partitionKeyDef: KeyDef[P], sortKeyDef: KeyDef[S], jClient: DynamoDbAsyncClient)(implicit evidence$1: Async[F], evidence$2: Encoder[P], evidence$3: Encoder[S])

Represent a secondary index (local and global) where the index has composite keys (partition key and sort key).

Type parameters

F

effect type

P

partition key type

S

sort key type

Value parameters

indexName

index's name

jClient

DynamoDB java async client

partitionKeyDef

partition key definition

sortKeyDef

sort key definition

tableName

table's name

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def retrieve[T : Decoder](partitionKey: P)(implicit evidence$1: Decoder[T], RT: RaiseThrowable[F]): Stream[F, T]

Retrieve all items with the same partition key as a fs2 Stream. A Stream is returned instead of a list because the number of returned items can be very large. This always performs eventually consistent reads as strong consistent is not supported for secondary index.

Retrieve all items with the same partition key as a fs2 Stream. A Stream is returned instead of a list because the number of returned items can be very large. This always performs eventually consistent reads as strong consistent is not supported for secondary index.

Type parameters

T

returned item's type

Value parameters

RT

implicit evidence for RaiseThrowable

partitionKey

partition key

Attributes

Returns

a fs2 Stream of items

Deprecated methods

def retrieve[T : Decoder](partitionKey: P, limit: Int)(implicit evidence$1: Decoder[T], RT: RaiseThrowable[F]): Stream[F, T]

Retrieve all items with the same partition key as a fs2 Stream. A Stream is returned instead of a list because the number of returned items can be very large. This always performs eventually consistent reads as strong consistent is not supported for secondary index.

Retrieve all items with the same partition key as a fs2 Stream. A Stream is returned instead of a list because the number of returned items can be very large. This always performs eventually consistent reads as strong consistent is not supported for secondary index.

Type parameters

T

returned item's type

Value parameters

RT

implicit evidence for RaiseThrowable

limit

number of items to be returned per API call

partitionKey

partition key

Attributes

Returns

a fs2 Stream of items

Deprecated
true

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def retrieve[T : Decoder](query: Query[P, S], consistentRead: Boolean)(implicit evidence$1: Decoder[T], RT: RaiseThrowable[F]): Stream[F, T]

Retrieve items from a composite index, can be a secondary index or a table which has composite keys (partition key and sort key).

Retrieve items from a composite index, can be a secondary index or a table which has composite keys (partition key and sort key).

Type parameters

T

return item's type

Value parameters

RT

implicit evidence for RaiseThrowable

consistentRead

toggle to perform consistent read

query

a query to filter items by key condition

Attributes

Returns

a fs2 Stream of items

Inherited from:
CompositeIndex (hidden)

Deprecated and Inherited methods

def retrieve[T : Decoder](query: Query[P, S], consistentRead: Boolean, limit: Int)(implicit evidence$1: Decoder[T], RT: RaiseThrowable[F]): Stream[F, T]

Retrieve items from a composite index, can be a secondary index or a table which has composite keys (partition key and sort key).

Retrieve items from a composite index, can be a secondary index or a table which has composite keys (partition key and sort key).

Type parameters

T

return item's type

Value parameters

RT

implicit evidence for RaiseThrowable

consistentRead

toggle to perform consistent read

limit

limit the number of items to be returned per API call

query

a query to filter items by key condition

Attributes

Returns

a fs2 Stream of items

Deprecated
true
Inherited from:
CompositeIndex (hidden)

Concrete fields

val index: CompositeKeysIndex[P, S]