Examples of ColumnWidth


Examples of org.apache.hadoop.hbase.hbql.statement.args.ColumnWidth

                             final String setter) {

        this.columnName = columnName;
        this.fieldType = fieldType;
        this.isArray = isArray;
        this.columnWidth = columnWidth != null ? columnWidth : new ColumnWidth();
        this.aliasName = aliasName;
        this.defaultValue = defaultValue;
        this.getter = getter;
        this.setter = setter;
View Full Code Here

Examples of org.apache.hadoop.hbase.hbql.statement.args.ColumnWidth

        return retval;
    }

    public void validateValueWidth(final Object value) throws HBqlException {

        final ColumnWidth columnWidth = this.getColumnDefinition().getColumnWidth();
        if (columnWidth.isWidthSpecified()) {
            final int width = columnWidth.getWidth();
            if (width > 0 && value instanceof String) {
                final String str = (String)value;
                if (str.length() != width)
                    throw new HBqlException("Invalid length in " + this.getNameToUseInExceptions()
                                            + " expecting width " + width + " but found " + str.length()
View Full Code Here

Examples of org.pentaho.metadata.model.concept.types.ColumnWidth

    if (type == null || ColumnWidth.class.equals(type))
    {
      return value;
    }

    final ColumnWidth width = (ColumnWidth) value;
    final float widthValue = (float)width.getWidth();
    final WidthType widthType = width.getType();

    final float rawWidth;
    if (widthType == WidthType.CM)
    {
      rawWidth = (float)widthValue * (72.0f * 100 / 254.0f);
View Full Code Here

Examples of org.pentaho.metadata.model.concept.types.ColumnWidth

        return value;
      }
      return new ColumnWidthWrapper((ColumnWidth) value);
    }

    final ColumnWidth width = (ColumnWidth) value;
    final float widthValue = (float) width.getWidth();
    final WidthType widthType = width.getType();

    final float rawWidth;
    if (widthType == WidthType.CM)
    {
      rawWidth = (float) widthValue * (72.0f * 100 / 254.0f);
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.