Interface ExecuteQueryRequest.Builder

    • Method Detail

      • graphIdentifier

        ExecuteQueryRequest.Builder graphIdentifier​(String graphIdentifier)

        The unique identifier of the Neptune Analytics graph.

        Parameters:
        graphIdentifier - The unique identifier of the Neptune Analytics graph.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • queryString

        ExecuteQueryRequest.Builder queryString​(String queryString)

        The query string to be executed.

        Parameters:
        queryString - The query string to be executed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • language

        ExecuteQueryRequest.Builder language​(String language)

        The query language the query is written in. Currently only openCypher is supported.

        Parameters:
        language - The query language the query is written in. Currently only openCypher is supported.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        QueryLanguage, QueryLanguage
      • language

        ExecuteQueryRequest.Builder language​(QueryLanguage language)

        The query language the query is written in. Currently only openCypher is supported.

        Parameters:
        language - The query language the query is written in. Currently only openCypher is supported.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        QueryLanguage, QueryLanguage
      • parameters

        ExecuteQueryRequest.Builder parameters​(Map<String,​Document> parameters)

        The data parameters the query can use in JSON format. For example: {"name": "john", "age": 20}. (optional)

        Parameters:
        parameters - The data parameters the query can use in JSON format. For example: {"name": "john", "age": 20}. (optional)
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • planCache

        ExecuteQueryRequest.Builder planCache​(String planCache)

        Query plan cache is a feature that saves the query plan and reuses it on successive executions of the same query. This reduces query latency, and works for both READ and UPDATE queries. The plan cache is an LRU cache with a 5 minute TTL and a capacity of 1000.

        Parameters:
        planCache - Query plan cache is a feature that saves the query plan and reuses it on successive executions of the same query. This reduces query latency, and works for both READ and UPDATE queries. The plan cache is an LRU cache with a 5 minute TTL and a capacity of 1000.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PlanCacheType, PlanCacheType
      • planCache

        ExecuteQueryRequest.Builder planCache​(PlanCacheType planCache)

        Query plan cache is a feature that saves the query plan and reuses it on successive executions of the same query. This reduces query latency, and works for both READ and UPDATE queries. The plan cache is an LRU cache with a 5 minute TTL and a capacity of 1000.

        Parameters:
        planCache - Query plan cache is a feature that saves the query plan and reuses it on successive executions of the same query. This reduces query latency, and works for both READ and UPDATE queries. The plan cache is an LRU cache with a 5 minute TTL and a capacity of 1000.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PlanCacheType, PlanCacheType
      • explainMode

        ExecuteQueryRequest.Builder explainMode​(String explainMode)

        The explain mode parameter returns a query explain instead of the actual query results. A query explain can be used to gather insights about the query execution such as planning decisions, time spent on each operator, solutions flowing etc.

        Parameters:
        explainMode - The explain mode parameter returns a query explain instead of the actual query results. A query explain can be used to gather insights about the query execution such as planning decisions, time spent on each operator, solutions flowing etc.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ExplainMode, ExplainMode
      • explainMode

        ExecuteQueryRequest.Builder explainMode​(ExplainMode explainMode)

        The explain mode parameter returns a query explain instead of the actual query results. A query explain can be used to gather insights about the query execution such as planning decisions, time spent on each operator, solutions flowing etc.

        Parameters:
        explainMode - The explain mode parameter returns a query explain instead of the actual query results. A query explain can be used to gather insights about the query execution such as planning decisions, time spent on each operator, solutions flowing etc.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ExplainMode, ExplainMode
      • queryTimeoutMilliseconds

        ExecuteQueryRequest.Builder queryTimeoutMilliseconds​(Integer queryTimeoutMilliseconds)

        Specifies the query timeout duration, in milliseconds. (optional)

        Parameters:
        queryTimeoutMilliseconds - Specifies the query timeout duration, in milliseconds. (optional)
        Returns:
        Returns a reference to this object so that method calls can be chained together.