private void checkServerGroupCompatibility() throws StandardException { if (this.qic.getPRTableCount() == 0) { // Get the SelectQueryInfo of first independent predecessor DMLQueryInfo prev =qic.getLastPushedIndependentQueryInfo(); SortedSet<String> replicatedSGs = getServerGroups(this .getDriverTableQueryInfo()); if (replicatedSGs != null && replicatedSGs != GemFireXDUtils.SET_MAX) { SortedSet<String> predecessor = getServerGroups(prev .getDriverTableQueryInfo()); if (GemFireXDUtils.setCompare(replicatedSGs, predecessor) >= 0) { // OK } else { throw StandardException.newException(SQLState.NOT_COLOCATED_WITH, prev.getDriverTableQueryInfo().getFullTableName() + "[server groups:" + SharedUtils.toCSV(predecessor) + "]", this.getDriverTableQueryInfo().getFullTableName() + "[server groups:" + SharedUtils.toCSV(replicatedSGs) + "]"); } } } }
private void checkServerGroupCompatibility() throws StandardException { if (this.qic.getPRTableCount() == 0) { // Get the SelectQueryInfo of first independent predecessor DMLQueryInfo prev =qic.getLastPushedIndependentQueryInfo(); SortedSet<String> replicatedSGs = getServerGroups(this .getDriverTableQueryInfo()); if (replicatedSGs != null && replicatedSGs != GemFireXDUtils.SET_MAX) { SortedSet<String> predecessor = getServerGroups(prev .getDriverTableQueryInfo()); if (GemFireXDUtils.setCompare(replicatedSGs, predecessor) >= 0) { // OK } else { throw StandardException.newException(SQLState.NOT_COLOCATED_WITH, prev.getDriverTableQueryInfo().getFullTableName() + "[server groups:" + SharedUtils.toCSV(predecessor) + "]", this.getDriverTableQueryInfo().getFullTableName() + "[server groups:" + SharedUtils.toCSV(replicatedSGs) + "]"); } } } }
private void checkServerGroupCompatibility() throws StandardException { if (this.qic.getPRTableCount() == 0) { // Get the SelectQueryInfo of first independent predecessor DMLQueryInfo prev =qic.getLastPushedIndependentQueryInfo(); SortedSet<String> replicatedSGs = getServerGroups(this .getDriverTableQueryInfo()); if (replicatedSGs != null && replicatedSGs != GemFireXDUtils.SET_MAX) { SortedSet<String> predecessor = getServerGroups(prev .getDriverTableQueryInfo()); if (GemFireXDUtils.setCompare(replicatedSGs, predecessor) >= 0) { // OK } else { throw StandardException.newException(SQLState.NOT_COLOCATED_WITH, prev.getDriverTableQueryInfo().getFullTableName() + "[server groups:" + SharedUtils.toCSV(predecessor) + "]", this.getDriverTableQueryInfo().getFullTableName() + "[server groups:" + SharedUtils.toCSV(replicatedSGs) + "]"); } } } }