@Test public void testFileStatus() throws IOException { Path outerInMemFSPath = getRandomOuterInMemPath(); assertThrows(UnsupportedOperationException.class, () -> { outerInMemFSPath.getFileSystem(conf).getFileStatus(outerInMemFSPath); }, "Should have thrown exception"); }
@Override public FileStatus getFileStatus(Path inlinePath) throws IOException { throw new UnsupportedOperationException("No support for getFileStatus"); }
InMemoryFileSystem extends FileSystem { @Override public FileStatus getFileStatus(Path inlinePath) throws IOException { throw new UnsupportedOperationException("No support for getFileStatus"); } }
InMemoryFileSystem extends FileSystem { @Override public FileStatus getFileStatus(Path inlinePath) throws IOException { throw new UnsupportedOperationException("No support for getFileStatus"); } InMemoryFileSystem(); }
InMemoryFileSystem extends FileSystem { @Override public FileStatus getFileStatus(Path inlinePath) throws IOException { throw new UnsupportedOperationException("No support for getFileStatus"); } InMemoryFileSystem(); @Override void initialize(URI name, Configuration conf); @Override URI getUri(); String getScheme(); @Override FSDataInputStream open(Path inlinePath, int bufferSize); @Override FSDataOutputStream create(Path path, FsPermission fsPermission, boolean b, int i, short i1, long l,
                                   Progressable progressable); byte[] getFileAsBytes(); @Override FSDataOutputStream append(Path path, int i, Progressable progressable); @Override boolean rename(Path path, Path path1); @Override boolean delete(Path path, boolean b); @Override FileStatus[] listStatus(Path inlinePath); @Override void setWorkingDirectory(Path path); @Override Path getWorkingDirectory(); @Override boolean mkdirs(Path path, FsPermission fsPermission); @Override boolean exists(Path f); @Override FileStatus getFileStatus(Path inlinePath); @Override void close(); }
InMemoryFileSystem extends FileSystem { @Override public FileStatus getFileStatus(Path inlinePath) throws IOException { throw new UnsupportedOperationException("No support for getFileStatus"); } InMemoryFileSystem(); @Override void initialize(URI name, Configuration conf); @Override URI getUri(); String getScheme(); @Override FSDataInputStream open(Path inlinePath, int bufferSize); @Override FSDataOutputStream create(Path path, FsPermission fsPermission, boolean b, int i, short i1, long l,
                                   Progressable progressable); byte[] getFileAsBytes(); @Override FSDataOutputStream append(Path path, int i, Progressable progressable); @Override boolean rename(Path path, Path path1); @Override boolean delete(Path path, boolean b); @Override FileStatus[] listStatus(Path inlinePath); @Override void setWorkingDirectory(Path path); @Override Path getWorkingDirectory(); @Override boolean mkdirs(Path path, FsPermission fsPermission); @Override boolean exists(Path f); @Override FileStatus getFileStatus(Path inlinePath); @Override void close(); static final String SCHEME; }