HasPropertyNode
@ExperimentalAppSearchApi
class HasPropertyNode : FunctionNode
FunctionNode representing the `hasProperty` query function.
The `hasProperty` query function will return all documents that contain the given property and have values in the given property.
Summary
Public constructors |
|---|
HasPropertyNode(propertyPath: PropertyPath)Constructor for a |
Public functions |
|
|---|---|
Boolean |
|
String |
Returns the name of the function represented by |
PropertyPath |
Gets the |
Int |
hashCode() |
Unit |
setPropertyPath(property: PropertyPath)Sets the |
String |
toString()Get the string representation of |
Inherited Constants |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
HasPropertyNode
HasPropertyNode(propertyPath: PropertyPath)
Constructor for a HasPropertyNode representing the query function `hasProperty`.
| Parameters | |
|---|---|
propertyPath: PropertyPath |
A |
Public functions
getFunctionName
fun getFunctionName(): String
Returns the name of the function represented by HasPropertyNode, stored in the enum FUNCTION_NAME_HAS_PROPERTY.
getPropertyPath
fun getPropertyPath(): PropertyPath
Gets the PropertyPath representing the property being checked for some value in the document.
setPropertyPath
fun setPropertyPath(property: PropertyPath): Unit
Sets the PropertyPath representing the property being checked for some value in the document.
toString
fun toString(): String
Get the string representation of HasPropertyNode.
The string representation of HasPropertyNode is the function name followed by the property path in quotes.