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

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

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

Dictionary.getValueBytesFromIdImpl介绍

暂无

代码示例

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

/**
 * @return the value bytes corresponds to the given ID
 * @throws IllegalArgumentException
 *             if ID is not found in dictionary
 */
final public byte[] getValueByteFromId(int id) throws IllegalArgumentException {
  if (isNullId(id))
    return null;
  else
    return getValueBytesFromIdImpl(id);
}

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

/**
 * @return the value bytes corresponds to the given ID
 * @throws IllegalArgumentException
 *             if ID is not found in dictionary
 */
final public byte[] getValueByteFromId(int id) throws IllegalArgumentException {
  if (isNullId(id))
    return null;
  else
    return getValueBytesFromIdImpl(id);
}

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

/**
 * A lower level API, get byte values from ID, return the number of bytes
 * written. Bypassing the cache layer, this could be significantly slower
 * than getIdFromValue(T value).
 *
 * @return size of value bytes, 0 if empty string, -1 if null
 *
 * @throws IllegalArgumentException
 *             if ID is not found in dictionary
 */
final public int getValueBytesFromId(int id, byte[] returnValue, int offset) {
  if (isNullId(id))
    return -1;
  else
    return getValueBytesFromIdImpl(id, returnValue, offset);
}

相关文章