Java Code Examples for org.apache.phoenix.compile.StatementContext#getDataColumnPosition()
The following examples show how to use
org.apache.phoenix.compile.StatementContext#getDataColumnPosition() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LocalIndexDataColumnRef.java From phoenix with Apache License 2.0 | 5 votes |
public LocalIndexDataColumnRef(StatementContext context, String indexColumnName) throws MetaDataEntityNotFoundException, SQLException { super(FromCompiler.getResolver( FACTORY.namedTable(null, TableName.create(context.getCurrentTable().getTable() .getSchemaName().getString(), context.getCurrentTable().getTable() .getParentTableName().getString())), context.getConnection()).resolveTable( context.getCurrentTable().getTable().getSchemaName().getString(), context.getCurrentTable().getTable().getParentTableName().getString()), IndexUtil .getDataColumnFamilyName(indexColumnName), IndexUtil .getDataColumnName(indexColumnName)); position = context.getDataColumnPosition(this.getColumn()); columns = context.getDataColumns(); }
Example 2
Source File: LocalIndexDataColumnRef.java From phoenix with Apache License 2.0 | 5 votes |
public LocalIndexDataColumnRef(StatementContext context, TableRef tRef, String indexColumnName) throws MetaDataEntityNotFoundException, SQLException { super(FromCompiler.getResolver( FACTORY.namedTable( null, TableName.create(tRef.getTable().getSchemaName().getString(), tRef.getTable() .getParentTableName().getString())), context.getConnection(), false) .resolveTable(context.getCurrentTable().getTable().getSchemaName().getString(), tRef.getTable().getParentTableName().getString()), IndexUtil.getDataColumnFamilyName(indexColumnName), IndexUtil .getDataColumnName(indexColumnName)); position = context.getDataColumnPosition(this.getColumn()); columns = context.getDataColumns(); }