CreateQueryPlan.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:graphflow 作者:
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 + ".");
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号