// Get the column's familyName
familyName = metaEventOperation.getColumnFamily(
table.getTableName(), item);
Field field = table.getColumn(item);
if (index.getStoring().containsKey(item)) {
ColumnStruct column = new ColumnStruct(table.getTableName(),
FConstants.INDEX_STORING_FAMILY_STR, item, field.getType());
selectStoringColumns.add(column);
} else {
ColumnStruct column = new ColumnStruct(table.getTableName(),
familyName, item, field.getType());
selectEntityColumns.add(column);
}
}
// if not only query storing columns, will be query the column with others.
if(selectEntityColumns.size() > 0) {
for (ColumnStruct selectStoringColumn : selectStoringColumns) {
ColumnStruct column = new ColumnStruct(table.getTableName(),
familyName, selectStoringColumn.getColumnName(), selectStoringColumn.getDataType());
selectEntityColumns.add(column);
}
}
return new Pair<List<ColumnStruct>, List<ColumnStruct>>(