Package org.apache.hadoop.hbase.hbql.statement.args

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


        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

TOP

Related Classes of org.apache.hadoop.hbase.hbql.statement.args.ColumnWidth

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.