FunctionNode


@ExperimentalAppSearchApi
interface FunctionNode : Node

Known direct subclasses
GetSearchStringParameterNode

FunctionNode that represents the getSearchStringParameter function.

HasPropertyNode

FunctionNode representing the `hasProperty` query function.

PropertyDefinedNode

FunctionNode representing the `propertyDefined` query function.

SearchNode

FunctionNode that represents the search function.

SemanticSearchNode

FunctionNode that represents the semanticSearch function.


Node that represents a function.

Every function node will have a function name and some arguments represented as fields on the class extending FunctionNode.

FunctionNode should be implemented by a node that implements a specific function.

Summary

Constants

const String!
FUNCTION_NAME_GET_SEARCH_STRING_PARAMETER = "getSearchStringParameter"

Name of the query function represented by androidx.appsearch.ast.query.GetSearchStringParameterNode.

const String!

Name of the query function represented by androidx.appsearch.ast.query.HasPropertyNode.

const String!
FUNCTION_NAME_PROPERTY_DEFINED = "propertyDefined"

Name of the query function represented by androidx.appsearch.ast.query.PropertyDefinedNode.

const String!

Name of the query function represented by androidx.appsearch.ast.query.SearchNode.

const String!

Name of the query function represented by androidx.appsearch.ast.query.SemanticSearchNode.

Public functions

String

Gets the name of the node that extends the FunctionNode.

Inherited functions

From androidx.appsearch.ast.Node
(Mutable)List<Node!>

Get a list of the node's child Nodes.

Constants

FUNCTION_NAME_GET_SEARCH_STRING_PARAMETER

Added in 1.1.0-alpha07
const val FUNCTION_NAME_GET_SEARCH_STRING_PARAMETER = "getSearchStringParameter": String!

Name of the query function represented by androidx.appsearch.ast.query.GetSearchStringParameterNode.

FUNCTION_NAME_HAS_PROPERTY

Added in 1.1.0-alpha07
const val FUNCTION_NAME_HAS_PROPERTY = "hasProperty": String!

Name of the query function represented by androidx.appsearch.ast.query.HasPropertyNode.

FUNCTION_NAME_PROPERTY_DEFINED

Added in 1.1.0-alpha07
const val FUNCTION_NAME_PROPERTY_DEFINED = "propertyDefined": String!

Name of the query function represented by androidx.appsearch.ast.query.PropertyDefinedNode.

FUNCTION_NAME_SEARCH

Added in 1.1.0-alpha07
const val FUNCTION_NAME_SEARCH = "search": String!

Name of the query function represented by androidx.appsearch.ast.query.SearchNode.

FUNCTION_NAME_SEMANTIC_SEARCH

Added in 1.1.0-alpha07
const val FUNCTION_NAME_SEMANTIC_SEARCH = "semanticSearch": String!

Name of the query function represented by androidx.appsearch.ast.query.SemanticSearchNode.

Public functions

getFunctionName

Added in 1.1.0-alpha07
fun getFunctionName(): String

Gets the name of the node that extends the FunctionNode.