Skip to content

//tempest-internal/app.cash.tempest.internal/ItemType

ItemType

[jvm]\ data class ItemType(val codec: Codec<Any, Any>, val type: KClass<>, val rawItemType: KClass<>, val attributes: Map<String, ItemType.Attribute>, val primaryIndex: ItemType.PrimaryIndex, val secondaryIndexes: Map<String, ItemType.SecondaryIndex>) : LogicalType

Constructors

ItemType [jvm]
constructor(codec: Codec<Any, Any>, type: KClass<>, rawItemType: KClass<>, attributes: Map<String, ItemType.Attribute>, primaryIndex: ItemType.PrimaryIndex, secondaryIndexes: Map<String, ItemType.SecondaryIndex>)

Types

Name Summary
Attribute [jvm]
data class Attribute(val propertyName: String, val names: Set<String>, val prefix: String, val returnType: KType, val allowEmpty: Boolean)
Factory [jvm]
class Factory
Index [jvm]
interface Index
PrimaryIndex [jvm]
data class PrimaryIndex(val hashKeyName: String, val rangeKeyName: String?) : ItemType.Index
SecondaryIndex [jvm]
data class SecondaryIndex(val name: String, val hashKeyName: String, val rangeKeyName: String?) : ItemType.Index

Properties

Name Summary
attributeNames [jvm]
val attributeNames: Set<String>
attributes [jvm]
val attributes: Map<String, ItemType.Attribute>
codec [jvm]
open override val codec: Codec<Any, Any>
primaryIndex [jvm]
val primaryIndex: ItemType.PrimaryIndex
rawItemType [jvm]
val rawItemType: KClass<*>
secondaryIndexes [jvm]
val secondaryIndexes: Map<String, ItemType.SecondaryIndex>
type [jvm]
val type: KClass<*>

Functions

Name Summary
keyAttributes [jvm]
fun keyAttributes(index: ItemType.Index): Set<ItemType.Attribute>