Constraint

sealed class Constraint

Represents constraints on the values of data nodes sent by subscriptions.

Types

Between
Link copied to clipboard
class Between(startKey: String, endKey: String) : Constraint

Children between: the values of data nodes sent by subscriptions will be limited to the child nodes of the actual data nodes whose keys are between startKey and endKey (included).

EndAt
Link copied to clipboard
class EndAt(endKey: String, limit: Int?) : Constraint

limit children until endKey: the values of data nodes sent by subscriptions will be limited to the last limit child nodes (or all child nodes if limit is not set) of the actual data nodes whose keys are lesser than or equal endKey.

First
Link copied to clipboard
class First(limit: Int) : Constraint

First limit children: the values of data nodes sent by subscriptions will be limited to the first limit child nodes of the actual data nodes.

Last
Link copied to clipboard
class Last(limit: Int) : Constraint

Last limit children: the values of data nodes sent by subscriptions will be limited to the last limit child nodes of the actual data nodes.

None
Link copied to clipboard
object None : Constraint

No constraint: the values of data nodes are sent without filtering any child node.

StartAt
Link copied to clipboard
class StartAt(startKey: String, limit: Int?) : Constraint

limit children from startKey: the values of data nodes sent by subscriptions will be limited to the first limit child nodes (or all child nodes if limit is not set) of the actual data nodes whose keys are greater than or equal startKey.

Inheritors

Constraint
Link copied to clipboard
Constraint
Link copied to clipboard
Constraint
Link copied to clipboard
Constraint
Link copied to clipboard
Constraint
Link copied to clipboard
Constraint
Link copied to clipboard