AttributePath

Represents an expression that consists of an attribute. Attributes are referenced by attribute paths, analogous to document paths in DynamoDB. Attribute paths consist of one or more elements, which are either names (e.g., of a top-level attribute or a nested key in a map attribute) or indices (i.e., into a list). The first (and often only) element of an attribute path is a name.

See FilterDsl for more information about creating references to attributes.

Properties

Link copied to clipboard
abstract val element: AttrPathElement

The AttrPathElement for this path

Link copied to clipboard
abstract val parent: AttributePath?

The parent AttributePath (if any). If parent is null then this instance represents a top-level attribute and element must be a name (not an index).

Functions

Link copied to clipboard
open override fun <T> accept(visitor: ExpressionVisitor<T>): T

Accepts a visitor that is traversing an expression tree by dispatching to a subtype implementation. Subtype implementations MUST call the ExpressionVisitor.visit overload for their concrete type (effectively forming a double dispatch) and MUST return the resulting value.

Link copied to clipboard
abstract operator fun get(index: Int): AttributePath

Creates an attribute path reference for an index into a list or set

abstract operator fun get(key: String): AttributePath

Creates an attribute path reference for a key in map