コード例 #1
0
ファイル: client.py プロジェクト: sachinunravel/hue-1
 def get_type_info(self, connection_id):
     request = requests_pb2.TypeInfoRequest()
     request.connection_id = connection_id
     response_data = self._apply(request, 'ResultSetResponse')
     response = responses_pb2.ResultSetResponse()
     response.ParseFromString(response_data)
     return response
コード例 #2
0
ファイル: client.py プロジェクト: sachinunravel/hue-1
 def get_catalogs(self, connection_id):
     request = requests_pb2.CatalogsRequest()
     request.connection_id = connection_id
     response_data = self._apply(request, 'ResultSetResponse')
     response = responses_pb2.ResultSetResponse()
     response.ParseFromString(response_data)
     return response
コード例 #3
0
ファイル: client.py プロジェクト: sachinunravel/hue-1
 def get_schemas(self, connection_id, catalog=None, schemaPattern=None):
     request = requests_pb2.SchemasRequest()
     request.connection_id = connection_id
     if catalog is not None:
         request.catalog = catalog
     if schemaPattern is not None:
         request.schema_pattern = schemaPattern
     response_data = self._apply(request, 'ResultSetResponse')
     response = responses_pb2.ResultSetResponse()
     response.ParseFromString(response_data)
     return response
コード例 #4
0
ファイル: client.py プロジェクト: sachinunravel/hue-1
 def get_columns(self,
                 connection_id,
                 catalog=None,
                 schemaPattern=None,
                 tableNamePattern=None,
                 columnNamePattern=None):
     request = requests_pb2.ColumnsRequest()
     request.connection_id = connection_id
     if catalog is not None:
         request.catalog = catalog
     if schemaPattern is not None:
         request.schema_pattern = schemaPattern
     if tableNamePattern is not None:
         request.table_name_pattern = tableNamePattern
     if columnNamePattern is not None:
         request.column_name_pattern = columnNamePattern
     response_data = self._apply(request, 'ResultSetResponse')
     response = responses_pb2.ResultSetResponse()
     response.ParseFromString(response_data)
     return response
コード例 #5
0
ファイル: client.py プロジェクト: sachinunravel/hue-1
 def get_tables(self,
                connection_id,
                catalog=None,
                schemaPattern=None,
                tableNamePattern=None,
                typeList=None):
     request = requests_pb2.TablesRequest()
     request.connection_id = connection_id
     if catalog is not None:
         request.catalog = catalog
     if schemaPattern is not None:
         request.schema_pattern = schemaPattern
     if tableNamePattern is not None:
         request.table_name_pattern = tableNamePattern
     if typeList is not None:
         request.type_list.extend(typeList)
     request.has_type_list = typeList is not None
     response_data = self._apply(request, 'ResultSetResponse')
     response = responses_pb2.ResultSetResponse()
     response.ParseFromString(response_data)
     return response