return table;
if (log.isInfoEnabled())
log.info("CREATING column family="+colFamily+" in the in memory nosql store");
DboTableMeta cf = dbMetaFromOrmOnly.getMeta(colFamily);
if(cf == null) {
//check the database now for the meta since it was not found in the ORM meta data. This is for
//those that are modifying meta data themselves
//DboDatabaseMeta db = mgr.find(DboDatabaseMeta.class, DboDatabaseMeta.META_DB_ROWKEY);
cf = mgr.find(DboTableMeta.class, colFamily);
if (log.isInfoEnabled())
log.info("cf from db="+cf);
//cf = db.getMeta(colFamily);
}
if(cf == null) {
throw new IllegalStateException("Column family='"+colFamily+"' was not found AND we looked up meta data for this column" +
" family to create it AND we could not find that data so we can't create it for you");
}
SortType sortType;
StorageTypeEnum prefixType = cf.getColNamePrefixType();
if(prefixType == null) {
switch (cf.getNameStorageType()) {
case BYTES:
sortType = SortType.BYTES;
break;
case DECIMAL:
sortType = SortType.DECIMAL;
break;
case INTEGER:
sortType = SortType.INTEGER;
break;
case STRING:
sortType = SortType.UTF8;
break;
default:
throw new UnsupportedOperationException("type not supported="+cf.getNameStorageType());
}
} else {
switch(prefixType) {
case DECIMAL:
sortType = SortType.DECIMAL_PREFIX;