org.apache.kylin.common.util.Dictionary.getSizeOfValue()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(152)

本文整理了Java中org.apache.kylin.common.util.Dictionary.getSizeOfValue()方法的一些代码示例,展示了Dictionary.getSizeOfValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dictionary.getSizeOfValue()方法的具体详情如下:
包路径:org.apache.kylin.common.util.Dictionary
类名称:Dictionary
方法名:getSizeOfValue

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;

相关文章