partitionBy = partitionPart.substring(0, index);
partitionId = partitionPart.substring(index);
}
DboTableMeta meta = mgr.find(DboTableMeta.class, cf);
if (meta == null) {
System.out.println("Column family meta not found for " + cf);
System.out.println("You can select from following tables:");
QueryResult result = mgr.getTypedSession().createQueryCursor("select * from DboTableMeta", 100);
Cursor<List<TypedRow>> cursor = result.getAllViewsCursor();
while (cursor.next()) {
List<TypedRow> joinedRow = cursor.getCurrent();
for (TypedRow r : joinedRow) {
System.out.println(r.getRowKeyString());
}
}
System.out.println("");
throw new InvalidCommand("Column family meta not found for " + cf);
}
DboColumnMeta colMeta = meta.getColumnMeta(field);
if(colMeta == null) {
colMeta = meta.getIdColumnMeta();
if(!(colMeta != null && colMeta.getColumnName().equals(field))) {
System.out.println("Column= "+field+" not found on table "+cf);
System.out.println("You can view index for following columns:");
for(DboColumnMeta colMetaOther : meta.getIndexedColumns()) {
System.out.println(colMetaOther.getColumnName());
}
System.out.println("");
throw new InvalidCommand("Column= "+field+" not found on table "+cf);
}