Exemplo n.º 1
0
 @Override
 public boolean fetch(OutputStream out, String filename) throws IOException {
   MetaFile metaFile = hdfsfilesRepository.getMetaFile(filename);
   SocketStream.writeInteger(metaFile.getLength().intValue(), out);
   HdfsHelper.fetch(out, metaFile.getStorename());
   return true;
 }