Class N1qlQueryExecutor


  • @Uncommitted
    @Private
    public class N1qlQueryExecutor
    extends Object
    A class used to execute various N1QL queries.
    Since:
    2.2
    Author:
    Simon Baslé
    • Constructor Detail

      • N1qlQueryExecutor

        public N1qlQueryExecutor​(ClusterFacade core,
                                 String bucket,
                                 String username,
                                 String password)
        Construct a new N1qlQueryExecutor that will send requests through the given ClusterFacade. For queries that are not ad-hoc, it will cache up to QUERY_CACHE_SIZE queries.
        Parameters:
        core - the core through which to send requests.
        bucket - the bucket to bootstrap from.
        username - the user authorized for bucket access.
        password - the password for the bucket.
      • N1qlQueryExecutor

        public N1qlQueryExecutor​(ClusterFacade core,
                                 String bucket,
                                 String password)
        Construct a new N1qlQueryExecutor that will send requests through the given ClusterFacade. For queries that are not ad-hoc, it will cache up to QUERY_CACHE_SIZE queries.
        Parameters:
        core - the core through which to send requests.
        bucket - the bucket to bootstrap from.
        password - the password for the bucket.
      • N1qlQueryExecutor

        public N1qlQueryExecutor​(ClusterFacade core,
                                 String bucket,
                                 String password,
                                 boolean encodedPlanEnabled)
        Construct a new N1qlQueryExecutor that will send requests through the given ClusterFacade. For queries that are not ad-hoc, it will cache up to QUERY_CACHE_SIZE queries.
        Parameters:
        core - the core through which to send requests.
        bucket - the bucket to bootstrap from.
        password - the password for the bucket.
        encodedPlanEnabled - true to include an encoded plan when running prepared queries, false otherwise.
      • N1qlQueryExecutor

        public N1qlQueryExecutor​(ClusterFacade core,
                                 String bucket,
                                 String username,
                                 String password,
                                 boolean encodedPlanEnabled)
        Construct a new N1qlQueryExecutor that will send requests through the given ClusterFacade. For queries that are not ad-hoc, it will cache up to QUERY_CACHE_SIZE queries.
        Parameters:
        core - the core through which to send requests.
        bucket - the bucket to bootstrap from.
        username - the user authorized for bucket access.
        password - the password for the user.
        encodedPlanEnabled - true to include an encoded plan when running prepared queries, false otherwise.