private void assertDataTypesAreConsistent(
Map<String, Pair<String, String>> thisPropertiesCollection,
Map<String, Pair<String, String>> thatPropertiesCollection) {
if (null == thisPropertiesCollection || null == thatPropertiesCollection) {
return;
}
for (String propertyKey : thisPropertiesCollection.keySet()) {
String thisDataType = thisPropertiesCollection.get(propertyKey).a.toUpperCase();
String thatDataType = null;
if (null != thatPropertiesCollection.get(propertyKey)) {
thatDataType = thatPropertiesCollection.get(propertyKey).a.toUpperCase();
}
if (null != thatDataType && !thisDataType.equals(thatDataType)) {
throw new IncorrectDataTypeException("Inconsistent DataType usage - property key " +
propertyKey + " is used with two different data types: " + thisDataType +
" and " + thatDataType + ".");
}
}
}
CreateQueryPlan.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:graphflow
作者:
评论列表
文章目录