public FileFooter3 deepCopy() { return new FileFooter3(this); }
/** * Below method will be used to get the file footer object * * @param infoList blocklet info * @param blockletIndexs * @param cardinalities cardinlaity of dimension columns * @param numberOfColumns * @return file footer */ private static FileFooter3 getFileFooter3(List<BlockletInfo3> infoList, List<BlockletIndex> blockletIndexs, int[] cardinalities, int numberOfColumns) { SegmentInfo segmentInfo = new SegmentInfo(); segmentInfo.setNum_cols(numberOfColumns); segmentInfo.setColumn_cardinalities(CarbonUtil.convertToIntegerList(cardinalities)); FileFooter3 footer = new FileFooter3(); footer.setNum_rows(getNumberOfRowForFooter(infoList)); footer.setSegment_info(segmentInfo); for (BlockletIndex info : blockletIndexs) { footer.addToBlocklet_index_list(info); } return footer; }