Examples of UnsupportedException


Examples of com.alibaba.wasp.plan.parser.UnsupportedException

      } else if (type == DataType.INT64) {
        return Bytes.toBytes(number.longValue());
      }
      return Bytes.toBytes((BigDecimal) number);
    } else if (number instanceof BigInteger) {
      throw new UnsupportedException(" BigInteger " + number + " Unsupported");
    } else if (number instanceof Byte) {
      return Bytes.toBytes((Byte) number);
    } else if (number instanceof Double) {
      double value = number.doubleValue();
      if (type == DataType.FLOAT) {
        return Bytes.toBytes((float) value);
      } else if (type == DataType.DOUBLE) {
        return Bytes.toBytes(value);
      } else if (type == DataType.INT32) {
        int iv = (int) value;
        return Bytes.toBytes(iv);
      } else if (type == DataType.INT64) {
        long lv = (long) value;
        return Bytes.toBytes(lv);
      }
    } else if (number instanceof Float) {
      float value = number.floatValue();
      if (type == DataType.FLOAT) {
        return Bytes.toBytes(value);
      } else if (type == DataType.DOUBLE) {
        return Bytes.toBytes((float) value);
      } else if (type == DataType.INT32) {
        int iv = (int) value;
        return Bytes.toBytes(iv);
      } else if (type == DataType.INT64) {
        long lv = (long) value;
        return Bytes.toBytes(lv);
      }
    } else if (number instanceof Integer) {
      int value = number.intValue();
      if (type == DataType.INT32) {
        return Bytes.toBytes((Integer) value);
      } else if (type == DataType.INT64) {
        return Bytes.toBytes((long) value);
      } else if (type == DataType.FLOAT) {
        float fv = (float) value;
        return Bytes.toBytes(fv);
      } else if (type == DataType.DOUBLE) {
        double fv = (double) value;
        return Bytes.toBytes(fv);
      }
    } else if (number instanceof Long) {
      long value = number.longValue();
      if (type == DataType.INT32) {
        return Bytes.toBytes((int) value);
      } else if (type == DataType.INT64) {
        return Bytes.toBytes(value);
      } else if (type == DataType.FLOAT) {
        float fv = (float) value;
        return Bytes.toBytes(fv);
      } else if (type == DataType.DOUBLE) {
        double fv = (double) value;
        return Bytes.toBytes(fv);
      }
    } else if (number instanceof Short) {
      return Bytes.toBytes((Short) number);
    }
    throw new UnsupportedException("Unknown Number:" + number + " Type:" + type
        + " Unsupported ");
  }
View Full Code Here

Examples of com.alibaba.wasp.plan.parser.UnsupportedException

    String methodName = expr.getMethodName();
    if (methodName.equalsIgnoreCase("NOW")) { // Date Function 'NOW()'
      if (type == DataType.DATETIME) { // Type must be DATETIME
        return Bytes.toBytes(EnvironmentEdgeManager.currentTimeMillis());
      } else {
        throw new UnsupportedException(" DataType " + type + " not support " + " Function "
            + methodName);
      }
    } else {
      throw new UnsupportedException(" Functions " + methodName + " Unsupported");
    }
  }
View Full Code Here

Examples of com.alibaba.wasp.plan.parser.UnsupportedException

      isDDL = false;
    } else if (stmt instanceof SQLDeleteStatement) {
      // This is a Delete SQL
      isDDL = false;
    } else {
      throw new UnsupportedException("Unsupported SQLStatement " + SQLUtils.toSQLString(stmt));
    }
    if(isDDL) {
      return SQLType.DDL;
    } else if (isDQL) {
      return SQLType.DQL;
View Full Code Here

Examples of com.cloud.bridge.service.exception.UnsupportedException

     */
    @Override
    public OrderedPair<String,Long> concatentateObjects(String mountedRoot, String destBucket, String fileName, String sourceBucket, S3MultipartPart[] parts, OutputStream client)
    {
        // TODO
        throw new UnsupportedException("Multipart upload support not yet implemented in CAStor plugin");

        /*
        MessageDigest md5;
        long totalLength = 0;

View Full Code Here

Examples of com.ourlinc.swift.exception.UnsupportedException

  }

  // get方法结束
  protected void genUniteId() {
    if (UniteId.nil != m_Id) {
      throw new UnsupportedException("不能重复初始化ID:" + m_Id);
    }
    m_Id = UniteId.valueOf(getPodi().getPersister(getClass()).getNewId());
    setPersistenceState(STATE_REINDEX | STATE_NEW);
  }
View Full Code Here

Examples of org.apache.juddi.error.UnsupportedException

    if (version == null)
      throw new FatalErrorException("A UDDI generic attribute " +
        "value was not found for UDDI request: "+operation+" (The " +
        "'generic' attribute must be present)");
    else if (!version.equals(IRegistry.UDDI_V2_GENERIC))
      throw new UnsupportedException("Only UDDI v2 " +
        "requests are currently supported. The generic attribute value " +
        "received was: "+version);

    if ((operation == null) || (operation.trim().length() == 0))
      throw new FatalErrorException("The UDDI service operation " +
        "could not be identified.");
    else if (!operations.contains(operation.toLowerCase()))
      throw new UnsupportedException("The operation "+operation+" is not " +
          "supported by the UDDI version 2 Inquiry API.");
  }
View Full Code Here

Examples of org.apache.juddi.error.UnsupportedException

      // UnsupportedException if one could not be located.

      HandlerMaker maker = HandlerMaker.getInstance();
      IHandler requestHandler = maker.lookup(operation);
      if (requestHandler == null)
        throw new UnsupportedException("The UDDI service operation " +
          "specified is unknown or unsupported: " +operation);
     
      // Unmarshal the raw xml into the appropriate jUDDI
      // request object.
View Full Code Here

Examples of org.apache.juddi.error.UnsupportedException

    if (version == null)
      throw new FatalErrorException("A jUDDI generic attribute " +
        "value was not found for UDDI request: "+operation+" (The " +
        "'generic' attribute must be present)");
    else if (!version.equals(IRegistry.JUDDI_V1_GENERIC))
      throw new UnsupportedException("Only jUDDI v1 requests " +
        "are currently supported. The generic attribute value " +
        "received was: "+version);

    if ((operation == null) || (operation.trim().length() == 0))
      throw new FatalErrorException("The jUDDI service operation " +
        "could not be identified.");
    else if (!operations.contains(operation.toLowerCase()))
      throw new UnsupportedException("The operation "+operation+" is not " +
          "supported by the jUDDI Admin API.");
  }
View Full Code Here

Examples of org.apache.juddi.error.UnsupportedException

      // Lookup the appropriate XML handler.  Throw an
      // UnsupportedException if one could not be located.
      HandlerMaker maker = HandlerMaker.getInstance();
      IHandler requestHandler = maker.lookup(operation);
      if (requestHandler == null)
        throw new UnsupportedException("The UDDI service operation " +
          "specified is unknown or unsupported: " +operation);
     
      // Unmarshal the raw xml into the appropriate jUDDI
      // request object.
View Full Code Here

Examples of org.apache.juddi.error.UnsupportedException

  {
    String className = request.getClass().getName();

    IFunction function = (IFunction)maker.lookup(className);
    if (function == null)
      throw new UnsupportedException(className);

    RegistryObject response = function.execute(request);

    return response;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.