@Test public void testOtherFileSystemRejected() { TestHelpers.assertThrows("Should reject paths not in the dataset", IllegalArgumentException.class, new Runnable() { @Override public void run() { FileSystemDatasets.viewForUri( dataset, "hdfs:/tmp/datasets/ns/test/y=2014/m=03/d=14"); } }); }
public static <E> View<E> viewForUri(Dataset<E> dataset, URI uri) { if (dataset instanceof FileSystemDataset) { return ((FileSystemDataset<E>) dataset).viewForUri(uri); } throw new IllegalArgumentException("Not a file system dataset: " + dataset); }
FileSystemDatasets { public static <E> View<E> viewForUri(Dataset<E> dataset, URI uri) { if (dataset instanceof FileSystemDataset) { return ((FileSystemDataset<E>) dataset).viewForUri(uri); } throw new IllegalArgumentException("Not a file system dataset: " + dataset); } }
FileSystemDatasets { public static <E> View<E> viewForUri(Dataset<E> dataset, URI uri) { if (dataset instanceof FileSystemDataset) { return ((FileSystemDataset<E>) dataset).viewForUri(uri); } throw new IllegalArgumentException("Not a file system dataset: " + dataset); }  }
FileSystemDatasets { public static <E> View<E> viewForUri(Dataset<E> dataset, URI uri) { if (dataset instanceof FileSystemDataset) { return ((FileSystemDataset<E>) dataset).viewForUri(uri); } throw new IllegalArgumentException("Not a file system dataset: " + dataset); }  static View<E> viewForUri(Dataset<E> dataset, URI uri); static View<E> viewForUri(Dataset<E> dataset, String uri); static View<E> viewForPath(Dataset<E> dataset, Path path); }
FileSystemDatasets { public static <E> View<E> viewForUri(Dataset<E> dataset, URI uri) { if (dataset instanceof FileSystemDataset) { return ((FileSystemDataset<E>) dataset).viewForUri(uri); } throw new IllegalArgumentException("Not a file system dataset: " + dataset); }  static View<E> viewForUri(Dataset<E> dataset, URI uri); static View<E> viewForUri(Dataset<E> dataset, String uri); static View<E> viewForPath(Dataset<E> dataset, Path path);  }