SimpleTable
Represent a table where the index has only partition key and no sort key.
Type parameters
- F
-
effect type
- P
-
partition key's type
Value parameters
- jClient
-
DynamoDB java async client
- partitionKeyDef
-
partition key definition
- tableName
-
table's name
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait PartitionKeyBatchGetOpsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Delete items by partition key in batch. Max batch size is preset to 100 (maximum batch size permitted for batch get action), however, it is possible to control the rate of batching with maxBatchWait
parameter. This uses fs2 .groupWithin internally. This returns a Pipe in order to cover broader use cases regardless of input can be fitted into memory or not. Duplicated items within a batch will be removed. Left over items within a batch will be reprocessed in the next batch.
Delete items by partition key in batch. Max batch size is preset to 100 (maximum batch size permitted for batch get action), however, it is possible to control the rate of batching with maxBatchWait
parameter. This uses fs2 .groupWithin internally. This returns a Pipe in order to cover broader use cases regardless of input can be fitted into memory or not. Duplicated items within a batch will be removed. Left over items within a batch will be reprocessed in the next batch.
Value parameters
- backoffStrategy
-
backoff strategy in case of failure, default can be found at meteor.Client.BackoffStrategy.default.
- maxBatchWait
-
time window to collect items into a batch
- parallelism
-
number of connections that can be open at the same time
Attributes
- Returns
-
a fs2 Pipe from composite keys P and S as a tuple to Unit
Get items by partition key in batch. Max batch size is preset to 100 (maximum batch size permitted for batch get action), however, it is possible to control the rate of batching with maxBatchWait
parameter. This uses fs2 .groupWithin internally. This returns a Pipe in order to cover broader use cases regardless of input can be fitted into memory or not. Duplicated items within a batch will be removed. Left over items within a batch will be reprocessed in the next batch.
Get items by partition key in batch. Max batch size is preset to 100 (maximum batch size permitted for batch get action), however, it is possible to control the rate of batching with maxBatchWait
parameter. This uses fs2 .groupWithin internally. This returns a Pipe in order to cover broader use cases regardless of input can be fitted into memory or not. Duplicated items within a batch will be removed. Left over items within a batch will be reprocessed in the next batch.
Type parameters
- T
-
returned item's type
Value parameters
- backoffStrategy
-
backoff strategy in case of failure, default can be found at meteor.Client.BackoffStrategy.default.
- consistentRead
-
flag to enable strongly consistent read
- maxBatchWait
-
time window to collect items into a batch
- parallelism
-
number of connections that can be open at the same time
- projection
-
projection expression
Attributes
- Returns
-
a fs2 Pipe from partition key P to T
Put items in batch, '''in ordered'''. Meaning batches are processed in '''serial''' to avoid race condition when writing items with the same partition key. If your input doesn't have this constrain, you can use batchPutUnordered. Max batch size is preset to 25 (maximum batch size permitted from batch put actions), however, it is possible to control the rate of batching with maxBatchWait
parameter. This uses fs2 .groupWithin internally. This returns a Pipe in order to cover broader use cases regardless of input can be fitted into memory or not. Duplicated items within a batch will be removed. Left over items within a batch will be reprocessed in the next batch.
Put items in batch, '''in ordered'''. Meaning batches are processed in '''serial''' to avoid race condition when writing items with the same partition key. If your input doesn't have this constrain, you can use batchPutUnordered. Max batch size is preset to 25 (maximum batch size permitted from batch put actions), however, it is possible to control the rate of batching with maxBatchWait
parameter. This uses fs2 .groupWithin internally. This returns a Pipe in order to cover broader use cases regardless of input can be fitted into memory or not. Duplicated items within a batch will be removed. Left over items within a batch will be reprocessed in the next batch.
Type parameters
- T
-
returned item's type
Value parameters
- backoffStrategy
-
backoff strategy in case of failure, default can be found at meteor.Client.BackoffStrategy.default.
- maxBatchWait
-
time window to collect items into a batch
Attributes
- Returns
-
a fs2 Pipe from T to Unit
Put items in batch, '''un-ordered'''. Meaning batches are processed in '''parallel''', hence, if your input has items with the same partition key, this can cause a race condition, consider using batchPut instead. Max batch size is preset to 25 (maximum batch size permitted from batch put actions), however, it is possible to control the rate of batching with maxBatchWait
parameter. This uses fs2 .groupWithin internally. This returns a Pipe in order to cover broader use cases regardless of input can be fitted into memory or not. Duplicated items within a batch will be removed. Left over items within a batch will be reprocessed in the next batch.
Put items in batch, '''un-ordered'''. Meaning batches are processed in '''parallel''', hence, if your input has items with the same partition key, this can cause a race condition, consider using batchPut instead. Max batch size is preset to 25 (maximum batch size permitted from batch put actions), however, it is possible to control the rate of batching with maxBatchWait
parameter. This uses fs2 .groupWithin internally. This returns a Pipe in order to cover broader use cases regardless of input can be fitted into memory or not. Duplicated items within a batch will be removed. Left over items within a batch will be reprocessed in the next batch.
Type parameters
- T
-
returned item's type
Value parameters
- backoffStrategy
-
backoff strategy in case of failure, default can be found at meteor.Client.BackoffStrategy.default.
- maxBatchWait
-
time window to collect items into a batch
- parallelism
-
number of connections that can be open at the same time
Attributes
- Returns
-
a fs2 Pipe from T to Unit
Write items (put or delete) in batch, '''in ordered'''. Meaning batches are processed in '''serial''' to avoid race condition when writing items with the same partition key. Max batch size is preset to 25 (maximum batch size permitted from batch write actions), however, it is possible to control the rate of batching with maxBatchWait
parameter. This uses fs2 .groupWithin internally. This returns a Pipe in order to cover broader use cases regardless of input can be fitted into memory or not. Duplicated items within a batch will be removed. Left over items within a batch will be reprocessed in the next batch.
Write items (put or delete) in batch, '''in ordered'''. Meaning batches are processed in '''serial''' to avoid race condition when writing items with the same partition key. Max batch size is preset to 25 (maximum batch size permitted from batch write actions), however, it is possible to control the rate of batching with maxBatchWait
parameter. This uses fs2 .groupWithin internally. This returns a Pipe in order to cover broader use cases regardless of input can be fitted into memory or not. Duplicated items within a batch will be removed. Left over items within a batch will be reprocessed in the next batch.
Type parameters
- T
-
returned item's type
Value parameters
- backoffStrategy
-
backoff strategy in case of failure, default can be found at meteor.Client.BackoffStrategy.default.
- maxBatchWait
-
time window to collect items into a batch
Attributes
- Returns
-
a fs2 Pipe from Either[P, T], represent deletion (Left) or put (Right) to Unit.
Delete an item by partition key.
Delete an item by partition key.
Value parameters
- partitionKey
-
partition key
Attributes
- Returns
-
Unit
Get a single item by partition key.
Get a single item by partition key.
Type parameters
- T
-
returned item's type
Value parameters
- consistentRead
-
flag to enable strongly consistent read
- partitionKey
-
partition key
Attributes
- Returns
-
an optional item of type T
Put an item into a table.
Put an item into a table.
Type parameters
- T
-
item's type
Value parameters
- condition
-
conditional expression
- t
-
item to be put
Attributes
- Returns
-
Unit
Put an item into a table and return previous value.
Put an item into a table and return previous value.
Type parameters
- T
-
item's type
- U
-
returned item's type
Value parameters
- condition
-
conditional expression
- t
-
item to be put
Attributes
- Returns
-
an option item of type U
Update an item by partition key given an update expression when a condition expression is fulfilled. Return Unit.
Update an item by partition key given an update expression when a condition expression is fulfilled. Return Unit.
Value parameters
- condition
-
conditional expression
- partitionKey
-
partition key
- update
-
update expression
Attributes
- Returns
-
Unit
Update an item by partition key given an update expression when a condition expression is fulfilled. Return item is customizable via returnValue
parameter.
Update an item by partition key given an update expression when a condition expression is fulfilled. Return item is customizable via returnValue
parameter.
Type parameters
- T
-
returned item's type
Value parameters
- condition
-
conditional expression
- partitionKey
-
partition key
- returnValue
-
flag to define which item to be returned
- update
-
update expression
Attributes
- Returns
-
an optional item of type T
Inherited methods
Attributes
- Inherited from:
- PartitionKeyBatchGetOps
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Retrieve items from a partition key index, can be a secondary index or a table which has only partition key and no sort key.
Retrieve items from a partition key index, can be a secondary index or a table which has only partition key and no 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
-
optional item of type T
- Inherited from:
- SimpleIndex (hidden)