if (tableName == null || tableName.length == 0) {
throw new IllegalArgumentException(
"table name cannot be null or zero length");
}
ensureZookeeperTrackers();
FTable table = TableSchemaCacheReader.getInstance(this.conf).getSchema(
Bytes.toString(tableName));
if (table.isRootTable()) {
// entityGroup not in the cache - have to go to read the meta table
return locateEntityGroupInMeta(tableName, row, useCache,
entityGroupLock);
} else {
return locateEntityGroupInMeta(Bytes.toBytes(table.getParentName()),
row, useCache, entityGroupLock);
}
}