public BlockletInfo3 deepCopy() { return new BlockletInfo3(this); }
List<BlockletInfo3> __this__blocklet_info_list3 = new ArrayList<BlockletInfo3>(other.blocklet_info_list3.size()); for (BlockletInfo3 other_element : other.blocklet_info_list3) { __this__blocklet_info_list3.add(new BlockletInfo3(other_element));
public static BlockletInfo3 getBlocletInfo3( org.apache.carbondata.core.metadata.blocklet.BlockletInfo blockletInfo) { List<Long> dimensionChunkOffsets = blockletInfo.getDimensionChunkOffsets(); dimensionChunkOffsets.addAll(blockletInfo.getMeasureChunkOffsets()); List<Integer> dimensionChunksLength = blockletInfo.getDimensionChunksLength(); dimensionChunksLength.addAll(blockletInfo.getMeasureChunksLength()); return new BlockletInfo3(blockletInfo.getNumberOfRows(), dimensionChunkOffsets, dimensionChunksLength, blockletInfo.getDimensionOffset(), blockletInfo.getMeasureOffsets(), blockletInfo.getNumberOfPages()); }
/** * Performs a deep copy on <i>other</i>. */ public BlockIndex(BlockIndex other) { __isset_bitfield = other.__isset_bitfield; this.num_rows = other.num_rows; if (other.isSetFile_name()) { this.file_name = other.file_name; } this.offset = other.offset; if (other.isSetBlock_index()) { this.block_index = new org.apache.carbondata.format.BlockletIndex(other.block_index); } if (other.isSetBlocklet_info()) { this.blocklet_info = new org.apache.carbondata.format.BlockletInfo3(other.blocklet_info); } this.file_size = other.file_size; }
encodedBlocklet, model.getSegmentProperties().getMeasures())); BlockletInfo3 blockletInfo3 = new BlockletInfo3(encodedBlocklet.getBlockletSize(), currentDataChunksOffset, currentDataChunksLength, dimensionOffset, measureOffset, encodedBlocklet.getNumberOfPages());
case 5: // BLOCKLET_INFO if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.blocklet_info = new org.apache.carbondata.format.BlockletInfo3(); struct.blocklet_info.read(iprot); struct.setBlocklet_infoIsSet(true);
for (int _i173 = 0; _i173 < _list171.size; ++_i173) _elem172 = new BlockletInfo3(); _elem172.read(iprot); struct.blocklet_info_list3.add(_elem172);
for (int _i189 = 0; _i189 < _list187.size; ++_i189) _elem188 = new BlockletInfo3(); _elem188.read(iprot); struct.blocklet_info_list3.add(_elem188);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, BlockIndex struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.num_rows = iprot.readI64(); struct.setNum_rowsIsSet(true); struct.file_name = iprot.readString(); struct.setFile_nameIsSet(true); struct.offset = iprot.readI64(); struct.setOffsetIsSet(true); struct.block_index = new org.apache.carbondata.format.BlockletIndex(); struct.block_index.read(iprot); struct.setBlock_indexIsSet(true); BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.blocklet_info = new org.apache.carbondata.format.BlockletInfo3(); struct.blocklet_info.read(iprot); struct.setBlocklet_infoIsSet(true); } if (incoming.get(1)) { struct.file_size = iprot.readI64(); struct.setFile_sizeIsSet(true); } } }