Examples of ColumnNotFoundException


Examples of org.apache.phoenix.schema.ColumnNotFoundException

          String resolvedSchemaName = tableRef.getTable().getSchemaName().getString();
          if (schemaName != null && tableName != null) {
                    if ( ! ( schemaName.equals(resolvedSchemaName&&
                             tableName.equals(resolvedTableName) )) {
                        if (!(resolveCF = schemaName.equals(alias))) {
                            throw new ColumnNotFoundException(schemaName, tableName, null, colName);
                        }
                    }
          } else { // schemaName == null && tableName != null
                    if (tableName != null && !tableName.equals(alias) && (!tableName.equals(resolvedTableName) || !resolvedSchemaName.equals(""))) {
                        resolveCF = true;
View Full Code Here

Examples of org.apache.phoenix.schema.ColumnNotFoundException

                    } catch (ColumnNotFoundException e) {

                    }
                }
                if (theTableRef != null) { return new ColumnRef(theTableRef, theColumnPosition); }
                throw new ColumnNotFoundException(colName);
            } else {
                try {
                    TableRef tableRef = resolveTable(schemaName, tableName);
                    PColumn column = tableRef.getTable().getColumn(colName);
                    return new ColumnRef(tableRef, column.getPosition());
View Full Code Here

Examples of uk.org.ogsadai.tuple.ColumnNotFoundException

                if(result < MIN_PRIORITY)
                  result = MAX_PRIORITY;
               
                if (i > noClassifiers)
                {
                    throw new ColumnNotFoundException(result);
                }
                priorities.add(result);
            }
        }
        return priorities;
View Full Code Here

Examples of uk.org.ogsadai.tuple.ColumnNotFoundException

        if (column instanceof Number)
        {
            result = ((Number)column).intValue();
            if (result < 0 || result > metadata.getColumnCount())
            {
                throw new ColumnNotFoundException(result);
            }
        }
        else if (column instanceof String)
        {
            String name = (String)column;
            result = metadata.getColumnMetadataPosition(name);
            if (result < 0)
            {
                throw new ColumnNotFoundException(name);
            }
        }
        else
        {
            throw new InvalidInputValueException(
View Full Code Here

Examples of uk.org.ogsadai.tuple.ColumnNotFoundException

                mColumnMapping.put(i, mapto);
                columns.remove(column.getName());
            }
            else
            {
                throw new ColumnNotFoundException(column.getName());
            }
        }
        if (columns.size() > 1)
        {
            throw new ActivityUserException(
View Full Code Here

Examples of uk.org.ogsadai.tuple.ColumnNotFoundException

                return index;
            }
            else
            {
                throw new ActivityUserException(
                        new ColumnNotFoundException((String)block));
            }
        }
        else
        {
            throw new InvalidInputValueException(
View Full Code Here

Examples of uk.org.ogsadai.tuple.ColumnNotFoundException

                return index;
            }
            else
            {
                throw new ActivityUserException(
                        new ColumnNotFoundException(index));
            }
        }
        else if (block instanceof String)
        {
            int index = metadata.getColumnMetadataPosition((String)block);
            if (index >= 0)
            {
                return index;
            }
            else
            {
                throw new ActivityUserException(
                        new ColumnNotFoundException((String)block));
            }
        }
        else
        {
            throw new InvalidInputValueException(
View Full Code Here

Examples of uk.org.ogsadai.tuple.ColumnNotFoundException

    {
        if (linearIndex >= metadata.getColumnCount()
                || linearIndex < 0)
        {
            throw new ActivityUserException(
                    new ColumnNotFoundException(linearIndex));
        }
        ColumnMetadata col = metadata.getColumnMetadata(linearIndex);
        if (col.getType() != TupleTypes._DOUBLE
                && col.getType() != TupleTypes._FLOAT
                && col.getType() != TupleTypes._LONG
View Full Code Here

Examples of uk.org.ogsadai.tuple.ColumnNotFoundException

    @Override
    public Object getObject(int index) throws ColumnNotFoundException
    {
        if (index < 0 || index >= mElements.size())
        {
            throw new ColumnNotFoundException(index);
        }
        Object result = mElements.get(index);
        mLastValueWasNull = (result == Null.VALUE);
        return result;
    }
View Full Code Here

Examples of uk.org.ogsadai.tuple.ColumnNotFoundException

                String columnName = template.substring(start + REPLACE_BEGIN.length(), end);
                int columnIndex = metadata.getColumnMetadataPosition(columnName);
                if (columnIndex == -1)
                {
                    throw new ActivityUserException(
                            new ColumnNotFoundException(columnName));
                }
                mColumns.add(columnIndex);
                mFixed.add(template.substring(prevStart, start));
                start = template.indexOf(REPLACE_BEGIN, end);
                prevStart = end + REPLACE_END.length();
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.