String tableName = HBaseMetadataProvider.getTableName(name);
String entityName = HBaseMetadataProvider.getEntityName(name);
if (entityName.contains(".")) {
List<DatasetDescriptor> descriptors = new ArrayList<DatasetDescriptor>();
for (String subEntityName : entityName.split("\\.")) {
DatasetDescriptor descriptor = metadataProvider.load(namespace, tableName + "." + subEntityName);
descriptors.add(descriptor);
}
return newCompositeDataset(namespace, name, tableName, descriptors, type);
} else {
DatasetDescriptor descriptor = metadataProvider.load(namespace, name);
return newDataset(namespace, name, descriptor, type);
}
}