@Override
public <T> Collection<T> read(Class<T> targetClass, ViewCallback viewCallback) {
DatasetDescriptor descriptor = getDatasetDescriptor(targetClass);
if (descriptor == null) {
throw new StoreException("Unable to locate dataset for target class " + targetClass.getName());
}
if (Formats.PARQUET.equals(descriptor.getFormat())) {
return readGenericRecords(targetClass, viewCallback);
} else {
return readPojo(targetClass, viewCallback);