本文整理了Java中org.apache.kylin.metadata.datatype.DataType.compare()
方法的一些代码示例,展示了DataType.compare()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataType.compare()
方法的具体详情如下:
包路径:org.apache.kylin.metadata.datatype.DataType
类名称:DataType
方法名:compare
暂无
代码示例来源:origin: apache/kylin
@Override
public boolean moveNext() throws IOException {
String minValue = null;
int curDictIndex = 0;
// multi-merge dictionary forest
for (int i = 0; i < dictionaryList.size(); i++) {
Dictionary<String> dict = dictionaryList.get(i);
if (dict == null)
continue;
int curKey = curKeys.get(i);
if (curKey > dict.getMaxId())
continue;
String curValue = dict.getValueFromId(curKey);
if (minValue == null || dataType.compare(minValue, curValue) > 0) {
minValue = curValue;
curDictIndex = i;
}
}
if (minValue == null) {
curValue = null;
return false;
}
curValue = minValue;
curKeys.set(curDictIndex, curKeys.get(curDictIndex) + 1);
return true;
}
代码示例来源:origin: apache/kylin
if (minValue == null || col.getType().compare(minValue, value) > 0) {
minValue = value;
if (maxValue == null || col.getType().compare(maxValue, value) < 0) {
maxValue = value;
代码示例来源:origin: apache/kylin
if (minValue == null || col.getType().compare(minValue, value) > 0) {
minValue = value;
if (maxValue == null || col.getType().compare(maxValue, value) < 0) {
maxValue = value;
代码示例来源:origin: org.apache.kylin/kylin-core-dictionary
@Override
public boolean moveNext() throws IOException {
String minValue = null;
int curDictIndex = 0;
// multi-merge dictionary forest
for (int i = 0; i < dictionaryList.size(); i++) {
Dictionary<String> dict = dictionaryList.get(i);
if (dict == null)
continue;
int curKey = curKeys.get(i);
if (curKey > dict.getMaxId())
continue;
String curValue = dict.getValueFromId(curKey);
if (minValue == null || dataType.compare(minValue, curValue) > 0) {
minValue = curValue;
curDictIndex = i;
}
}
if (minValue == null) {
curValue = null;
return false;
}
curValue = minValue;
curKeys.set(curDictIndex, curKeys.get(curDictIndex) + 1);
return true;
}
代码示例来源:origin: org.apache.kylin/kylin-engine-mr
if (minValue == null || col.getType().compare(minValue, value) > 0) {
minValue = value;
if (maxValue == null || col.getType().compare(maxValue, value) < 0) {
maxValue = value;
代码示例来源:origin: org.apache.kylin/kylin-engine-spark
if (minValue == null || col.getType().compare(minValue, value) > 0) {
minValue = value;
if (maxValue == null || col.getType().compare(maxValue, value) < 0) {
maxValue = value;
内容来源于网络,如有侵权,请联系作者删除!