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

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

本文整理了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

  1. public ShrunkenDictionary<T> build(ValueSerializer<T> valueSerializer) {
  2. return new ShrunkenDictionary<>(valueSerializer, fullDict.getMinId(), fullDict.getMaxId(),
  3. fullDict.getSizeOfId(), fullDict.getSizeOfValue(), valueToIdMap);
  4. }
  5. }

代码示例来源:origin: apache/kylin

  1. while (sourceDict.getSizeOfValue() > newKeyBodyBuf.length - bufOffset || //
  2. mergedDict.getSizeOfValue() > newKeyBodyBuf.length - bufOffset || //
  3. mergedDict.getSizeOfId() > newKeyBodyBuf.length - bufOffset) {
  4. byte[] oldBuf = newKeyBodyBuf;

代码示例来源:origin: org.apache.kylin/kylin-dictionary

  1. @Override
  2. public boolean moveNext() throws IOException {
  3. if (curDictIndex < dictionaryList.size() && curKey <= curDict.getMaxId()) {
  4. byte[] buffer = new byte[curDict.getSizeOfValue()];
  5. int size = curDict.getValueBytesFromId(curKey, buffer, 0);
  6. curValue = Bytes.copy(buffer, 0, size);
  7. if (++curKey > curDict.getMaxId()) {
  8. if (++curDictIndex < dictionaryList.size()) {
  9. curDict = dictionaryList.get(curDictIndex);
  10. curKey = curDict.getMinId();
  11. }
  12. }
  13. return true;
  14. }
  15. curValue = null;
  16. return false;
  17. }

代码示例来源:origin: org.apache.kylin/kylin-core-dictionary

  1. public ShrunkenDictionary<T> build(ValueSerializer<T> valueSerializer) {
  2. return new ShrunkenDictionary<>(valueSerializer, fullDict.getMinId(), fullDict.getMaxId(),
  3. fullDict.getSizeOfId(), fullDict.getSizeOfValue(), valueToIdMap);
  4. }
  5. }

代码示例来源:origin: org.apache.kylin/kylin-job

  1. Dictionary<?> mergedDict = dictMgr.getDictionary(mergedCubeSegment.getDictResPath(col));
  2. while (sourceDict.getSizeOfValue() > newKeyBuf.length - bufOffset || mergedDict.getSizeOfValue() > newKeyBuf.length - bufOffset) {
  3. byte[] oldBuf = newKeyBuf;
  4. newKeyBuf = new byte[2 * newKeyBuf.length];

代码示例来源:origin: org.apache.kylin/kylin-engine-mr

  1. while (sourceDict.getSizeOfValue() > newKeyBodyBuf.length - bufOffset || //
  2. mergedDict.getSizeOfValue() > newKeyBodyBuf.length - bufOffset || //
  3. mergedDict.getSizeOfId() > newKeyBodyBuf.length - bufOffset) {
  4. byte[] oldBuf = newKeyBodyBuf;

相关文章