public THRegionInfo deepCopy() { return new THRegionInfo(this); }
/** * Performs a deep copy on <i>other</i>. */ public THRegionLocation(THRegionLocation other) { if (other.isSetServerName()) { this.serverName = new TServerName(other.serverName); } if (other.isSetRegionInfo()) { this.regionInfo = new THRegionInfo(other.regionInfo); } }
case 2: // REGION_INFO if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.regionInfo = new THRegionInfo(); struct.regionInfo.read(iprot); struct.setRegionInfoIsSet(true);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, THRegionLocation struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.serverName = new TServerName(); struct.serverName.read(iprot); struct.setServerNameIsSet(true); struct.regionInfo = new THRegionInfo(); struct.regionInfo.read(iprot); struct.setRegionInfoIsSet(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 THRegionInfo deepCopy() { return new THRegionInfo(this); }
public THRegionInfo deepCopy() { return new THRegionInfo(this); }
/** * Performs a deep copy on <i>other</i>. */ public THRegionLocation(THRegionLocation other) { if (other.isSetServerName()) { this.serverName = new TServerName(other.serverName); } if (other.isSetRegionInfo()) { this.regionInfo = new THRegionInfo(other.regionInfo); } }
/** * Performs a deep copy on <i>other</i>. */ public THRegionLocation(THRegionLocation other) { if (other.isSetServerName()) { this.serverName = new TServerName(other.serverName); } if (other.isSetRegionInfo()) { this.regionInfo = new THRegionInfo(other.regionInfo); } }
case 2: // REGION_INFO if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.regionInfo = new THRegionInfo(); struct.regionInfo.read(iprot); struct.setRegionInfoIsSet(true);
case 2: // REGION_INFO if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.regionInfo = new THRegionInfo(); struct.regionInfo.read(iprot); struct.setRegionInfoIsSet(true);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, THRegionLocation struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.serverName = new TServerName(); struct.serverName.read(iprot); struct.setServerNameIsSet(true); struct.regionInfo = new THRegionInfo(); struct.regionInfo.read(iprot); struct.setRegionInfoIsSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, THRegionLocation struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.serverName = new TServerName(); struct.serverName.read(iprot); struct.setServerNameIsSet(true); struct.regionInfo = new THRegionInfo(); struct.regionInfo.read(iprot); struct.setRegionInfoIsSet(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; }