本文整理了Java中org.apache.kylin.common.util.Dictionary.isNullId()
方法的一些代码示例,展示了Dictionary.isNullId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dictionary.isNullId()
方法的具体详情如下:
包路径:org.apache.kylin.common.util.Dictionary
类名称:Dictionary
方法名:isNullId
暂无
代码示例来源: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: apache/kylin
/**
* @return the value corresponds to the given ID
* @throws IllegalArgumentException
* if ID is not found in dictionary
*/
final public T getValueFromId(int id) throws IllegalArgumentException {
if (isNullId(id))
return null;
else
return getValueFromIdImpl(id);
}
代码示例来源:origin: org.apache.kylin/kylin-common
/**
* @return the value corresponds to the given ID
* @throws IllegalArgumentException
* if ID is not found in dictionary
*/
final public T getValueFromId(int id) {
if (isNullId(id))
return null;
else
return getValueFromIdImpl(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-core-common
/**
* @return the value corresponds to the given ID
* @throws IllegalArgumentException
* if ID is not found in dictionary
*/
final public T getValueFromId(int id) throws IllegalArgumentException {
if (isNullId(id))
return null;
else
return getValueFromIdImpl(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);
}
内容来源于网络,如有侵权,请联系作者删除!