Package com.alibaba.wasp.protobuf.generated.MasterMonitorProtos

Examples of com.alibaba.wasp.protobuf.generated.MasterMonitorProtos.GetTableDescriptorsRequest


    @Override
    public FTable[] listTables() throws IOException {
      MasterMonitorKeepAliveConnection master = getKeepAliveMasterMonitor();
      try {
        GetTableDescriptorsRequest req = RequestConverter
            .buildGetTableDescriptorsRequest(null);
        return ProtobufUtil.getHTableDescriptorArray(master
            .getTableDescriptors(null, req));
      } catch (ServiceException se) {
        throw ProtobufUtil.getRemoteException(se);
View Full Code Here


      MasterMonitorKeepAliveConnection master = getKeepAliveMasterMonitor();
      GetTableDescriptorsResponse htds;
      try {
        List<String> tables = new ArrayList<String>();
        tables.add(Bytes.toString(tableName));
        GetTableDescriptorsRequest req = RequestConverter
            .buildGetTableDescriptorsRequest(tables);
        htds = master.getTableDescriptors(null, req);
        if (htds.getTableSchemaList().size() > 0) {
          return ProtobufUtil.convertITableSchema(htds.getTableSchemaList()
              .get(0));
View Full Code Here

        throws IOException {
      if (tableNames == null || tableNames.isEmpty())
        return new FTable[0];
      MasterMonitorKeepAliveConnection master = getKeepAliveMasterMonitor();
      try {
        GetTableDescriptorsRequest req = RequestConverter
            .buildGetTableDescriptorsRequest(tableNames);
        return ProtobufUtil.getHTableDescriptorArray(master
            .getTableDescriptors(null, req));
      } catch (ServiceException se) {
        throw ProtobufUtil.getRemoteException(se);
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.protobuf.generated.MasterMonitorProtos.GetTableDescriptorsRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.