PropertyDefinedNode
@ExperimentalAppSearchApi
public final class PropertyDefinedNode implements FunctionNode
FunctionNode representing the `propertyDefined` query function.
The `propertyDefined` query function will return all documents of types that define the given property. This will include documents that do not have the property itself, so long as that property is a part of the document's schema.
If you need to restrict to documents that have >=1 value(s) populated for that property, see HasPropertyNode.
Summary
Public constructors |
|---|
PropertyDefinedNode(@NonNull PropertyPath propertyPath)Constructor for a |
Public methods |
|
|---|---|
boolean |
|
@NonNull String |
Returns the name of the function represented by |
@NonNull PropertyPath |
Returns the |
int |
hashCode() |
void |
setPropertyPath(@NonNull PropertyPath property)Sets the property being checked for in the document, as represented by |
@NonNull String |
toString()Get the string representation of |
Inherited Constants |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
PropertyDefinedNode
public PropertyDefinedNode(@NonNull PropertyPath propertyPath)
Constructor for a PropertyDefinedNode representing the query function `propertyDefined` that takes in a PropertyPath.
Public methods
getFunctionName
public @NonNull String getFunctionName()
Returns the name of the function represented by PropertyDefinedNode.
getPropertyPath
public @NonNull PropertyPath getPropertyPath()
Returns the PropertyPath representing the property being checked for in the document.
setPropertyPath
public void setPropertyPath(@NonNull PropertyPath property)
Sets the property being checked for in the document, as represented by PropertyDefinedNode.
toString
public @NonNull String toString()
Get the string representation of PropertyDefinedNode.
The string representation of PropertyDefinedNode is the function name followed by the property path in quotes surrounded by parentheses.