Source:
<code>public static MetaDataMutationResult constructFromProto(MetaDataResponse proto) { MetaDataMutationResult result = new MetaDataMutationResult(); result.returnCode = MutationCode.values()[proto.getReturnCode().ordinal()]; result.mutationTime = proto.getMutationTime(); if (proto.hasTable()) { result.wasUpdated = true; result.table = PTableImpl.createFromProto(proto.getTable()); } if (proto.getFunctionCount() > 0) { result.wasUpdated = true; for(PFunctionProtos.PFunction function: proto.getFunctionList()) result.functions.add(PFunction.createFromProto(function)); } if (proto.getTablesToDeleteCount() > 0) { result.tableNamesToDelete = Lists.newArrayListWithExpectedSize(proto.getTablesToDeleteCount()); for (ByteString tableName : proto.getTablesToDeleteList()) { result.tableNamesToDelete.add(tableName.toByteArray()); } } result.columnName = ByteUtil.EMPTY_BYTE_ARRAY; if(proto.hasColumnName()){ result.columnName = proto.getColumnName().toByteArray(); } if(proto.hasFamilyName()){ result.familyName = proto.getFamilyName().toByteArray(); } if(proto.getSharedTablesToDeleteCount() > 0) { result.sharedTablesToDelete = Lists.newArrayListWithExpectedSize(proto.getSharedTablesToDeleteCount()); for (org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState sharedTable : proto.getSharedTablesToDeleteList()) { result.sharedTablesToDelete.add(new SharedTableState(sharedTable)); } } if (proto.hasSchema()) { result.schema = PSchema.createFromProto(proto.getSchema()); } if (proto.hasAutoPartitionNum()) { result.autoPartitionNum = proto.getAutoPartitionNum(); } if (proto.hasViewIndexId()) { result.viewIndexId = proto.getViewIndexId(); } <START> result.viewIndexType = proto.hasUseLongViewIndexId() <END> ? MetaDataUtil.getViewIndexIdDataType() : MetaDataUtil.getLegacyViewIndexIdDataType(); return result; }</code><technical_language>change boolean int represent data type</technical_language>

Target:
public static MetaDataMutationResult constructFromProto(MetaDataResponse proto) { MetaDataMutationResult result = new MetaDataMutationResult(); result.returnCode = MutationCode.values()[proto.getReturnCode().ordinal()]; result.mutationTime = proto.getMutationTime(); if (proto.hasTable()) { result.wasUpdated = true; result.table = PTableImpl.createFromProto(proto.getTable()); } if (proto.getFunctionCount() > 0) { result.wasUpdated = true; for(PFunctionProtos.PFunction function: proto.getFunctionList()) result.functions.add(PFunction.createFromProto(function)); } if (proto.getTablesToDeleteCount() > 0) { result.tableNamesToDelete = Lists.newArrayListWithExpectedSize(proto.getTablesToDeleteCount()); for (ByteString tableName : proto.getTablesToDeleteList()) { result.tableNamesToDelete.add(tableName.toByteArray()); } } result.columnName = ByteUtil.EMPTY_BYTE_ARRAY; if(proto.hasColumnName()){ result.columnName = proto.getColumnName().toByteArray(); } if(proto.hasFamilyName()){ result.familyName = proto.getFamilyName().toByteArray(); } if(proto.getSharedTablesToDeleteCount() > 0) { result.sharedTablesToDelete = Lists.newArrayListWithExpectedSize(proto.getSharedTablesToDeleteCount()); for (org.apache.phoenix.coprocessor.generated.MetaDataProtos.SharedTableState sharedTable : proto.getSharedTablesToDeleteList()) { result.sharedTablesToDelete.add(new SharedTableState(sharedTable)); } } if (proto.hasSchema()) { result.schema = PSchema.createFromProto(proto.getSchema()); } if (proto.hasAutoPartitionNum()) { result.autoPartitionNum = proto.getAutoPartitionNum(); } if (proto.hasViewIndexId()) { result.viewIndexId = proto.getViewIndexId(); } result.viewIndexType = proto.hasViewIndexType() ? PDataType.fromTypeId(proto.getViewIndexType()) : MetaDataUtil.getLegacyViewIndexIdDataType(); return result; }