* @param view a dataset or view
* @return this for method chaining
*/
public ConfigBuilder readFrom(View<?> view) {
if (view instanceof FileSystemDataset) {
FileSystemDataset dataset = (FileSystemDataset) view;
conf.set(KITE_PARTITION_DIR,
String.valueOf(dataset.getDescriptor().getLocation()));
}
withType(view.getType());
return readFrom(view.getUri());
}