5758596061626364656667
BlockId id = block.getId(); IContainer c = fs.getContainer(id.getContainerId()); DataSegment seg = (DataSegment) c.getSegment(id.getSegmentId()); seg.writeBlock(block); } catch (Exception e) { throw new RuntimeException(e); }