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

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


    public FTable getFTableDescriptor(byte[] tableName) throws IOException {
      if (tableName == null || tableName.length == 0)
        return null;

      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));
        }
        return null;
      } catch (ServiceException se) {
        throw ProtobufUtil.getRemoteException(se);
View Full Code Here

TOP

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

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.