}
public Bytes length() {
return Bytes.bytes(new FileSummary(FishEye.getInstance().getAnalyzer(), fid).getSize());
}
};
ResourceStreamResource resourceStream = new ResourceStreamResource(hadoopfsStream);
resourceStream.setContentDisposition(ContentDisposition.ATTACHMENT);
resourceStream.setFileName(fs.getFname());
add(new ResourceLink<File>("downloadlink", resourceStream));
// querySupported container holds queryform
// queryUnsupported container holds an error message
final boolean querySupported = dd.isHiveSupported() && fe.isQueryServerAvailable(false);