Class MapD.AsyncClient

  • All Implemented Interfaces:
    MapD.AsyncIface
    Enclosing class:
    MapD

    public static class MapD.AsyncClient
    extends org.apache.thrift.async.TAsyncClient
    implements MapD.AsyncIface
    • Constructor Detail

      • AsyncClient

        public AsyncClient​(org.apache.thrift.protocol.TProtocolFactory protocolFactory,
                           org.apache.thrift.async.TAsyncClientManager clientManager,
                           org.apache.thrift.transport.TNonblockingTransport transport)
    • Method Detail

      • connect

        public void connect​(String user,
                            String passwd,
                            String dbname,
                            org.apache.thrift.async.AsyncMethodCallback<String> resultHandler)
                     throws org.apache.thrift.TException
        Specified by:
        connect in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • krb5_connect

        public void krb5_connect​(String inputToken,
                                 String dbname,
                                 org.apache.thrift.async.AsyncMethodCallback<TKrb5Session> resultHandler)
                          throws org.apache.thrift.TException
        Specified by:
        krb5_connect in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • disconnect

        public void disconnect​(String session,
                               org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                        throws org.apache.thrift.TException
        Specified by:
        disconnect in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • switch_database

        public void switch_database​(String session,
                                    String dbname,
                                    org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                             throws org.apache.thrift.TException
        Specified by:
        switch_database in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_server_status

        public void get_server_status​(String session,
                                      org.apache.thrift.async.AsyncMethodCallback<TServerStatus> resultHandler)
                               throws org.apache.thrift.TException
        Specified by:
        get_server_status in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_status

        public void get_status​(String session,
                               org.apache.thrift.async.AsyncMethodCallback<List<TServerStatus>> resultHandler)
                        throws org.apache.thrift.TException
        Specified by:
        get_status in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_tables

        public void get_tables​(String session,
                               org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler)
                        throws org.apache.thrift.TException
        Specified by:
        get_tables in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_physical_tables

        public void get_physical_tables​(String session,
                                        org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler)
                                 throws org.apache.thrift.TException
        Specified by:
        get_physical_tables in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_views

        public void get_views​(String session,
                              org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler)
                       throws org.apache.thrift.TException
        Specified by:
        get_views in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_tables_meta

        public void get_tables_meta​(String session,
                                    org.apache.thrift.async.AsyncMethodCallback<List<TTableMeta>> resultHandler)
                             throws org.apache.thrift.TException
        Specified by:
        get_tables_meta in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_table_details

        public void get_table_details​(String session,
                                      String table_name,
                                      org.apache.thrift.async.AsyncMethodCallback<TTableDetails> resultHandler)
                               throws org.apache.thrift.TException
        Specified by:
        get_table_details in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_users

        public void get_users​(String session,
                              org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler)
                       throws org.apache.thrift.TException
        Specified by:
        get_users in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_databases

        public void get_databases​(String session,
                                  org.apache.thrift.async.AsyncMethodCallback<List<TDBInfo>> resultHandler)
                           throws org.apache.thrift.TException
        Specified by:
        get_databases in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_version

        public void get_version​(org.apache.thrift.async.AsyncMethodCallback<String> resultHandler)
                         throws org.apache.thrift.TException
        Specified by:
        get_version in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • start_heap_profile

        public void start_heap_profile​(String session,
                                       org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                                throws org.apache.thrift.TException
        Specified by:
        start_heap_profile in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • stop_heap_profile

        public void stop_heap_profile​(String session,
                                      org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                               throws org.apache.thrift.TException
        Specified by:
        stop_heap_profile in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_heap_profile

        public void get_heap_profile​(String session,
                                     org.apache.thrift.async.AsyncMethodCallback<String> resultHandler)
                              throws org.apache.thrift.TException
        Specified by:
        get_heap_profile in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_memory

        public void get_memory​(String session,
                               String memory_level,
                               org.apache.thrift.async.AsyncMethodCallback<List<TNodeMemoryInfo>> resultHandler)
                        throws org.apache.thrift.TException
        Specified by:
        get_memory in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • clear_cpu_memory

        public void clear_cpu_memory​(String session,
                                     org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                              throws org.apache.thrift.TException
        Specified by:
        clear_cpu_memory in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • clear_gpu_memory

        public void clear_gpu_memory​(String session,
                                     org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                              throws org.apache.thrift.TException
        Specified by:
        clear_gpu_memory in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • set_table_epoch

        public void set_table_epoch​(String session,
                                    int db_id,
                                    int table_id,
                                    int new_epoch,
                                    org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                             throws org.apache.thrift.TException
        Specified by:
        set_table_epoch in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • set_table_epoch_by_name

        public void set_table_epoch_by_name​(String session,
                                            String table_name,
                                            int new_epoch,
                                            org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                                     throws org.apache.thrift.TException
        Specified by:
        set_table_epoch_by_name in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_table_epoch

        public void get_table_epoch​(String session,
                                    int db_id,
                                    int table_id,
                                    org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler)
                             throws org.apache.thrift.TException
        Specified by:
        get_table_epoch in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_table_epoch_by_name

        public void get_table_epoch_by_name​(String session,
                                            String table_name,
                                            org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler)
                                     throws org.apache.thrift.TException
        Specified by:
        get_table_epoch_by_name in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_session_info

        public void get_session_info​(String session,
                                     org.apache.thrift.async.AsyncMethodCallback<TSessionInfo> resultHandler)
                              throws org.apache.thrift.TException
        Specified by:
        get_session_info in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • sql_execute

        public void sql_execute​(String session,
                                String query,
                                boolean column_format,
                                String nonce,
                                int first_n,
                                int at_most_n,
                                org.apache.thrift.async.AsyncMethodCallback<TQueryResult> resultHandler)
                         throws org.apache.thrift.TException
        Specified by:
        sql_execute in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • sql_execute_df

        public void sql_execute_df​(String session,
                                   String query,
                                   TDeviceType device_type,
                                   int device_id,
                                   int first_n,
                                   org.apache.thrift.async.AsyncMethodCallback<TDataFrame> resultHandler)
                            throws org.apache.thrift.TException
        Specified by:
        sql_execute_df in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • sql_execute_gdf

        public void sql_execute_gdf​(String session,
                                    String query,
                                    int device_id,
                                    int first_n,
                                    org.apache.thrift.async.AsyncMethodCallback<TDataFrame> resultHandler)
                             throws org.apache.thrift.TException
        Specified by:
        sql_execute_gdf in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • deallocate_df

        public void deallocate_df​(String session,
                                  TDataFrame df,
                                  TDeviceType device_type,
                                  int device_id,
                                  org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                           throws org.apache.thrift.TException
        Specified by:
        deallocate_df in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • interrupt

        public void interrupt​(String session,
                              org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                       throws org.apache.thrift.TException
        Specified by:
        interrupt in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • sql_validate

        public void sql_validate​(String session,
                                 String query,
                                 org.apache.thrift.async.AsyncMethodCallback<Map<String,​TColumnType>> resultHandler)
                          throws org.apache.thrift.TException
        Specified by:
        sql_validate in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • set_execution_mode

        public void set_execution_mode​(String session,
                                       TExecuteMode mode,
                                       org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                                throws org.apache.thrift.TException
        Specified by:
        set_execution_mode in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • render_vega

        public void render_vega​(String session,
                                long widget_id,
                                String vega_json,
                                int compression_level,
                                String nonce,
                                org.apache.thrift.async.AsyncMethodCallback<TRenderResult> resultHandler)
                         throws org.apache.thrift.TException
        Specified by:
        render_vega in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_dashboard

        public void get_dashboard​(String session,
                                  int dashboard_id,
                                  org.apache.thrift.async.AsyncMethodCallback<TDashboard> resultHandler)
                           throws org.apache.thrift.TException
        Specified by:
        get_dashboard in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_dashboards

        public void get_dashboards​(String session,
                                   org.apache.thrift.async.AsyncMethodCallback<List<TDashboard>> resultHandler)
                            throws org.apache.thrift.TException
        Specified by:
        get_dashboards in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • create_dashboard

        public void create_dashboard​(String session,
                                     String dashboard_name,
                                     String dashboard_state,
                                     String image_hash,
                                     String dashboard_metadata,
                                     org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler)
                              throws org.apache.thrift.TException
        Specified by:
        create_dashboard in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • replace_dashboard

        public void replace_dashboard​(String session,
                                      int dashboard_id,
                                      String dashboard_name,
                                      String dashboard_owner,
                                      String dashboard_state,
                                      String image_hash,
                                      String dashboard_metadata,
                                      org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                               throws org.apache.thrift.TException
        Specified by:
        replace_dashboard in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • delete_dashboard

        public void delete_dashboard​(String session,
                                     int dashboard_id,
                                     org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                              throws org.apache.thrift.TException
        Specified by:
        delete_dashboard in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_dashboard_grantees

        public void get_dashboard_grantees​(String session,
                                           int dashboard_id,
                                           org.apache.thrift.async.AsyncMethodCallback<List<TDashboardGrantees>> resultHandler)
                                    throws org.apache.thrift.TException
        Specified by:
        get_dashboard_grantees in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_link_view

        public void get_link_view​(String session,
                                  String link,
                                  org.apache.thrift.async.AsyncMethodCallback<TFrontendView> resultHandler)
                           throws org.apache.thrift.TException
        Specified by:
        get_link_view in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • create_link

        public void create_link​(String session,
                                String view_state,
                                String view_metadata,
                                org.apache.thrift.async.AsyncMethodCallback<String> resultHandler)
                         throws org.apache.thrift.TException
        Specified by:
        create_link in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • load_table_binary

        public void load_table_binary​(String session,
                                      String table_name,
                                      List<TRow> rows,
                                      org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                               throws org.apache.thrift.TException
        Specified by:
        load_table_binary in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • load_table_binary_columnar

        public void load_table_binary_columnar​(String session,
                                               String table_name,
                                               List<TColumn> cols,
                                               org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                                        throws org.apache.thrift.TException
        Specified by:
        load_table_binary_columnar in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • load_table_binary_arrow

        public void load_table_binary_arrow​(String session,
                                            String table_name,
                                            ByteBuffer arrow_stream,
                                            org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                                     throws org.apache.thrift.TException
        Specified by:
        load_table_binary_arrow in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • load_table

        public void load_table​(String session,
                               String table_name,
                               List<TStringRow> rows,
                               org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                        throws org.apache.thrift.TException
        Specified by:
        load_table in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • import_table

        public void import_table​(String session,
                                 String table_name,
                                 String file_name,
                                 TCopyParams copy_params,
                                 org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                          throws org.apache.thrift.TException
        Specified by:
        import_table in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • import_table_status

        public void import_table_status​(String session,
                                        String import_id,
                                        org.apache.thrift.async.AsyncMethodCallback<TImportStatus> resultHandler)
                                 throws org.apache.thrift.TException
        Specified by:
        import_table_status in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • check_table_consistency

        public void check_table_consistency​(String session,
                                            int table_id,
                                            org.apache.thrift.async.AsyncMethodCallback<TTableMeta> resultHandler)
                                     throws org.apache.thrift.TException
        Specified by:
        check_table_consistency in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • start_query

        public void start_query​(String session,
                                String query_ra,
                                boolean just_explain,
                                org.apache.thrift.async.AsyncMethodCallback<TPendingQuery> resultHandler)
                         throws org.apache.thrift.TException
        Specified by:
        start_query in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • execute_query_step

        public void execute_query_step​(TPendingQuery pending_query,
                                       org.apache.thrift.async.AsyncMethodCallback<TStepResult> resultHandler)
                                throws org.apache.thrift.TException
        Specified by:
        execute_query_step in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • start_render_query

        public void start_render_query​(String session,
                                       long widget_id,
                                       short node_idx,
                                       String vega_json,
                                       org.apache.thrift.async.AsyncMethodCallback<TPendingRenderQuery> resultHandler)
                                throws org.apache.thrift.TException
        Specified by:
        start_render_query in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • insert_data

        public void insert_data​(String session,
                                TInsertData insert_data,
                                org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                         throws org.apache.thrift.TException
        Specified by:
        insert_data in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • checkpoint

        public void checkpoint​(String session,
                               int db_id,
                               int table_id,
                               org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
                        throws org.apache.thrift.TException
        Specified by:
        checkpoint in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_roles

        public void get_roles​(String session,
                              org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler)
                       throws org.apache.thrift.TException
        Specified by:
        get_roles in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_all_roles_for_user

        public void get_all_roles_for_user​(String session,
                                           String userName,
                                           org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler)
                                    throws org.apache.thrift.TException
        Specified by:
        get_all_roles_for_user in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • has_role

        public void has_role​(String session,
                             String granteeName,
                             String roleName,
                             org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler)
                      throws org.apache.thrift.TException
        Specified by:
        has_role in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • set_license_key

        public void set_license_key​(String session,
                                    String key,
                                    String nonce,
                                    org.apache.thrift.async.AsyncMethodCallback<TLicenseInfo> resultHandler)
                             throws org.apache.thrift.TException
        Specified by:
        set_license_key in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_license_claims

        public void get_license_claims​(String session,
                                       String nonce,
                                       org.apache.thrift.async.AsyncMethodCallback<TLicenseInfo> resultHandler)
                                throws org.apache.thrift.TException
        Specified by:
        get_license_claims in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException
      • get_device_parameters

        public void get_device_parameters​(String session,
                                          org.apache.thrift.async.AsyncMethodCallback<Map<String,​String>> resultHandler)
                                   throws org.apache.thrift.TException
        Specified by:
        get_device_parameters in interface MapD.AsyncIface
        Throws:
        org.apache.thrift.TException