QueryDatasetSource

class QueryDatasetSource @InternalWowApi constructor(val description: String, val columns: Map<String, QueryDatasetSource.Column> = emptyMap(), val aggregate: AggregateType? = null, val id: String? = null, val declaresAccess: Boolean = false, val tenant: String? = null)

The source of a dataset's table: what it is (description, for a message), and each of its columns that holds a value a state marks sensitive. A column it does not name holds none. When the backend knows more of the table, as of a table its Sink writes, it says whose rows it holds (aggregate, each row's id in id, and whether that aggregate declares access attributes, declaresAccess) and where each row's tenant is (tenant), which the engine holds the dataset's scope to.

Constructors

Link copied to clipboard
constructor(description: String, columns: Map<String, QueryDatasetSource.Column> = emptyMap(), aggregate: AggregateType? = null, id: String? = null, declaresAccess: Boolean = false, tenant: String? = null)

Types

Link copied to clipboard
sealed interface Column

A column that holds a value a state marks sensitive.

Link copied to clipboard
object Companion
Link copied to clipboard
class Masked @InternalWowApi constructor(val path: String, val level: SensitivityLevel, val mask: QueryMask = QueryMask.FULL) : QueryDatasetSource.Column

A column holding the one value at path of its source (state.phone), which the source masks at level by mask (a custom strategy is resolved by the engine's strategies, as for a snapshot read).

Link copied to clipboard
class Opaque @InternalWowApi constructor(val paths: List<String>) : QueryDatasetSource.Column

A column holding a whole document (paths are the protected values in it, such as state.phone): a dataset field masks a column whole, never one path in it, so a dataset cannot read such a column.

Properties

Link copied to clipboard

The aggregate each of the table's rows is of; null when the table holds no one aggregate's rows, or unknown.

Link copied to clipboard

The protected columns, by name.

Link copied to clipboard

Whether aggregate declares access attributes, as the Manifest says: such an aggregate has an access policy wherever it is hosted, and is read only through it, which a node that does not host it cannot resolve.

Link copied to clipboard

What the table holds, such as the state of shop.order, in shop_order_state_flat.

Link copied to clipboard
val id: String?

The column holding each row's aggregate id; null exactly when aggregate is.

Link copied to clipboard

The column holding each row's tenant; null when the table has none, or it is unknown.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String