public THRegionLocation deepCopy() { return new THRegionLocation(this); }
public static THRegionLocation regionLocationFromHBase(HRegionLocation hrl) { HRegionInfo hri = hrl.getRegionInfo(); ServerName serverName = hrl.getServerName(); THRegionInfo thRegionInfo = new THRegionInfo(); THRegionLocation thRegionLocation = new THRegionLocation(); TServerName tServerName = new TServerName(); tServerName.setHostName(serverName.getHostname()); tServerName.setPort(serverName.getPort()); tServerName.setStartCode(serverName.getStartcode()); thRegionInfo.setTableName(hri.getTable().getName()); thRegionInfo.setEndKey(hri.getEndKey()); thRegionInfo.setStartKey(hri.getStartKey()); thRegionInfo.setOffline(hri.isOffline()); thRegionInfo.setSplit(hri.isSplit()); thRegionInfo.setReplicaId(hri.getReplicaId()); thRegionLocation.setRegionInfo(thRegionInfo); thRegionLocation.setServerName(tServerName); return thRegionLocation; }
public THRegionLocation deepCopy() { return new THRegionLocation(this); }
public THRegionLocation deepCopy() { return new THRegionLocation(this); }
/** * Performs a deep copy on <i>other</i>. */ public getAllRegionLocations_result(getAllRegionLocations_result other) { if (other.isSetSuccess()) { List<THRegionLocation> __this__success = new ArrayList<THRegionLocation>(other.success.size()); for (THRegionLocation other_element : other.success) { __this__success.add(new THRegionLocation(other_element)); } this.success = __this__success; } if (other.isSetIo()) { this.io = new TIOError(other.io); } }
/** * Performs a deep copy on <i>other</i>. */ public getAllRegionLocations_result(getAllRegionLocations_result other) { if (other.isSetSuccess()) { List<THRegionLocation> __this__success = new ArrayList<THRegionLocation>(other.success.size()); for (THRegionLocation other_element : other.success) { __this__success.add(new THRegionLocation(other_element)); } this.success = __this__success; } if (other.isSetIo()) { this.io = new TIOError(other.io); } }
/** * Performs a deep copy on <i>other</i>. */ public getRegionLocation_result(getRegionLocation_result other) { if (other.isSetSuccess()) { this.success = new THRegionLocation(other.success); } if (other.isSetIo()) { this.io = new TIOError(other.io); } }
/** * Performs a deep copy on <i>other</i>. */ public getRegionLocation_result(getRegionLocation_result other) { if (other.isSetSuccess()) { this.success = new THRegionLocation(other.success); } if (other.isSetIo()) { this.io = new TIOError(other.io); } }
case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new THRegionLocation(); struct.success.read(iprot); struct.setSuccessIsSet(true);
case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new THRegionLocation(); struct.success.read(iprot); struct.setSuccessIsSet(true);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new THRegionLocation(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, getRegionLocation_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new THRegionLocation(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); } } }
for (int _i190 = 0; _i190 < _list188.size; ++_i190) _elem189 = new THRegionLocation(); _elem189.read(iprot); struct.success.add(_elem189);
for (int _i190 = 0; _i190 < _list188.size; ++_i190) _elem189 = new THRegionLocation(); _elem189.read(iprot); struct.success.add(_elem189);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list193 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList<THRegionLocation>(_list193.size); THRegionLocation _elem194; for (int _i195 = 0; _i195 < _list193.size; ++_i195) { _elem194 = new THRegionLocation(); _elem194.read(iprot); struct.success.add(_elem194); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, getAllRegionLocations_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list193 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList<THRegionLocation>(_list193.size); THRegionLocation _elem194; for (int _i195 = 0; _i195 < _list193.size; ++_i195) { _elem194 = new THRegionLocation(); _elem194.read(iprot); struct.success.add(_elem194); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); } } }
public static THRegionLocation regionLocationFromHBase(HRegionLocation hrl) { HRegionInfo hri = hrl.getRegionInfo(); ServerName serverName = hrl.getServerName(); THRegionInfo thRegionInfo = new THRegionInfo(); THRegionLocation thRegionLocation = new THRegionLocation(); TServerName tServerName = new TServerName(); tServerName.setHostName(serverName.getHostname()); tServerName.setPort(serverName.getPort()); tServerName.setStartCode(serverName.getStartcode()); thRegionInfo.setTableName(hri.getTable().getName()); thRegionInfo.setEndKey(hri.getEndKey()); thRegionInfo.setStartKey(hri.getStartKey()); thRegionInfo.setOffline(hri.isOffline()); thRegionInfo.setSplit(hri.isSplit()); thRegionInfo.setReplicaId(hri.getReplicaId()); thRegionLocation.setRegionInfo(thRegionInfo); thRegionLocation.setServerName(tServerName); return thRegionLocation; }
public static THRegionLocation regionLocationFromHBase(HRegionLocation hrl) { HRegionInfo hri = hrl.getRegionInfo(); ServerName serverName = hrl.getServerName(); THRegionInfo thRegionInfo = new THRegionInfo(); THRegionLocation thRegionLocation = new THRegionLocation(); TServerName tServerName = new TServerName(); tServerName.setHostName(serverName.getHostname()); tServerName.setPort(serverName.getPort()); tServerName.setStartCode(serverName.getStartcode()); thRegionInfo.setTableName(hri.getTable().getName()); thRegionInfo.setEndKey(hri.getEndKey()); thRegionInfo.setStartKey(hri.getStartKey()); thRegionInfo.setOffline(hri.isOffline()); thRegionInfo.setSplit(hri.isSplit()); thRegionInfo.setReplicaId(hri.getReplicaId()); thRegionLocation.setRegionInfo(thRegionInfo); thRegionLocation.setServerName(tServerName); return thRegionLocation; }