// TODO: use descriptor.getFormat() to decide type of DAO (Avro vs. other)
String tableName = HBaseMetadataProvider.getTableName(name);
String entityName = HBaseMetadataProvider.getEntityName(name);
Dao dao;
if (isSpecific(descriptor)) {
dao = new SpecificAvroDao(tablePool, tableName, entityName, schemaManager);
} else {
dao = new GenericAvroDao(tablePool, tableName, entityName, schemaManager);
}
return new DaoDataset(namespace, name, dao, descriptor,
new URIBuilder(repositoryUri, namespace, name).build(), type);