本文整理了Java中org.apache.kylin.common.util.Dictionary.getSizeOfValue()
方法的一些代码示例,展示了Dictionary.getSizeOfValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dictionary.getSizeOfValue()
方法的具体详情如下:
包路径:org.apache.kylin.common.util.Dictionary
类名称:Dictionary
方法名:getSizeOfValue
暂无
代码示例来源:origin: apache/kylin
public ShrunkenDictionary<T> build(ValueSerializer<T> valueSerializer) {
return new ShrunkenDictionary<>(valueSerializer, fullDict.getMinId(), fullDict.getMaxId(),
fullDict.getSizeOfId(), fullDict.getSizeOfValue(), valueToIdMap);
}
}
代码示例来源:origin: apache/kylin
while (sourceDict.getSizeOfValue() > newKeyBodyBuf.length - bufOffset || //
mergedDict.getSizeOfValue() > newKeyBodyBuf.length - bufOffset || //
mergedDict.getSizeOfId() > newKeyBodyBuf.length - bufOffset) {
byte[] oldBuf = newKeyBodyBuf;
代码示例来源:origin: org.apache.kylin/kylin-dictionary
@Override
public boolean moveNext() throws IOException {
if (curDictIndex < dictionaryList.size() && curKey <= curDict.getMaxId()) {
byte[] buffer = new byte[curDict.getSizeOfValue()];
int size = curDict.getValueBytesFromId(curKey, buffer, 0);
curValue = Bytes.copy(buffer, 0, size);
if (++curKey > curDict.getMaxId()) {
if (++curDictIndex < dictionaryList.size()) {
curDict = dictionaryList.get(curDictIndex);
curKey = curDict.getMinId();
}
}
return true;
}
curValue = null;
return false;
}
代码示例来源:origin: org.apache.kylin/kylin-core-dictionary
public ShrunkenDictionary<T> build(ValueSerializer<T> valueSerializer) {
return new ShrunkenDictionary<>(valueSerializer, fullDict.getMinId(), fullDict.getMaxId(),
fullDict.getSizeOfId(), fullDict.getSizeOfValue(), valueToIdMap);
}
}
代码示例来源:origin: org.apache.kylin/kylin-job
Dictionary<?> mergedDict = dictMgr.getDictionary(mergedCubeSegment.getDictResPath(col));
while (sourceDict.getSizeOfValue() > newKeyBuf.length - bufOffset || mergedDict.getSizeOfValue() > newKeyBuf.length - bufOffset) {
byte[] oldBuf = newKeyBuf;
newKeyBuf = new byte[2 * newKeyBuf.length];
代码示例来源:origin: org.apache.kylin/kylin-engine-mr
while (sourceDict.getSizeOfValue() > newKeyBodyBuf.length - bufOffset || //
mergedDict.getSizeOfValue() > newKeyBodyBuf.length - bufOffset || //
mergedDict.getSizeOfId() > newKeyBodyBuf.length - bufOffset) {
byte[] oldBuf = newKeyBodyBuf;
内容来源于网络,如有侵权,请联系作者删除!