@Test public void testGetContentSize() throws Exception { long len = 321L; HadoopFileStatus hadoopFileStatus = mock( HadoopFileStatus.class ); when( hadoopFileSystem.getFileStatus( hadoopFileSystemPath ) ).thenReturn( hadoopFileStatus ); when( hadoopFileStatus.getLen() ).thenReturn( len ); assertEquals( len, hdfsFileObject.doGetContentSize() ); }
@Override protected long doGetContentSize() throws Exception { return hdfs.getFileStatus( hdfs.getPath( getName().getPath() ) ).getLen(); }
HDFSFileObject extends AbstractFileObject { @Override protected long doGetContentSize() throws Exception { return hdfs.getFileStatus( hdfs.getPath( getName().getPath() ) ).getLen(); } }
HDFSFileObject extends AbstractFileObject { @Override protected long doGetContentSize() throws Exception { return hdfs.getFileStatus( hdfs.getPath( getName().getPath() ) ).getLen(); } HDFSFileObject( final AbstractFileName name, final HDFSFileSystem fileSystem ); }
HDFSFileObject extends AbstractFileObject { @Override protected long doGetContentSize() throws Exception { return hdfs.getFileStatus( hdfs.getPath( getName().getPath() ) ).getLen(); } HDFSFileObject( final AbstractFileName name, final HDFSFileSystem fileSystem ); @Override void doCreateFolder(); @Override void doDelete(); }
HDFSFileObject extends AbstractFileObject { @Override protected long doGetContentSize() throws Exception { return hdfs.getFileStatus( hdfs.getPath( getName().getPath() ) ).getLen(); } HDFSFileObject( final AbstractFileName name, final HDFSFileSystem fileSystem ); @Override void doCreateFolder(); @Override void doDelete();  }