private static void projectIndexColumnFamily(StatementContext context, String cfName, TableRef tableRef, List<Expression> projectedExpressions, List<ExpressionProjector> projectedColumns) throws SQLException {
PTable index = tableRef.getTable();
PTable table = context.getConnection().getPMetaData().getTable(index.getParentName().getString());
PColumnFamily pfamily = table.getColumnFamily(cfName);
for (PColumn column : pfamily.getColumns()) {
PColumn indexColumn = index.getColumn(IndexUtil.getIndexColumnName(column));
ColumnRef ref = new ColumnRef(tableRef, indexColumn.getPosition());
Expression expression = ref.newColumnExpression();
projectedExpressions.add(expression);
projectedColumns.add(new ExpressionProjector(column.getName().toString(),
table.getName().getString(), expression, false));
}