作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中hivemall.utils.codec.ZigZagLEB128Codec.readSignedInt()
方法的一些代码示例,展示了ZigZagLEB128Codec.readSignedInt()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZigZagLEB128Codec.readSignedInt()
方法的具体详情如下:
包路径:hivemall.utils.codec.ZigZagLEB128Codec
类名称:ZigZagLEB128Codec
方法名:readSignedInt
暂无
代码示例来源:origin: org.apache.hivemall/hivemall-core
@Deprecated
public static float readFloat(@Nonnull final DataInput in) throws IOException {
int bits = readSignedInt(in);
return Float.intBitsToFloat(bits);
}
代码示例来源:origin: io.github.myui/hivemall-core
@Deprecated
public static float readFloat(@Nonnull final DataInput in) throws IOException {
int bits = readSignedInt(in);
return Float.intBitsToFloat(bits);
}
代码示例来源:origin: org.apache.hivemall/hivemall-core
@Deprecated
@Nonnull
public static float[] readVFloats(@Nonnull final DataInput in, final int size)
throws IOException {
final float[] floats = new float[size];
for (int i = 0; i < size; i++) {
int bits = ZigZagLEB128Codec.readSignedInt(in);
floats[i] = Float.intBitsToFloat(bits);
}
return floats;
}
代码示例来源:origin: io.github.myui/hivemall-core
@Deprecated
@Nonnull
public static float[] readVFloats(@Nonnull final DataInput in, final int size)
throws IOException {
final float[] floats = new float[size];
for (int i = 0; i < size; i++) {
int bits = ZigZagLEB128Codec.readSignedInt(in);
floats[i] = Float.intBitsToFloat(bits);
}
return floats;
}
代码示例来源:origin: io.github.myui/hivemall-core
@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
this._threshold = in.readInt();
this._used = in.readInt();
final int size = in.readInt();
final int[] keys = new int[size];
final long[] values = new long[size];
final byte[] states = new byte[size];
readStates(in, states);
for (int i = 0; i < size; i++) {
if (states[i] != FULL) {
continue;
}
keys[i] = ZigZagLEB128Codec.readSignedInt(in);
values[i] = ZigZagLEB128Codec.readSignedLong(in);
}
this._keys = keys;
this._values = values;
this._states = states;
}
代码示例来源:origin: io.github.myui/hivemall-core
continue;
keys[i] = ZigZagLEB128Codec.readSignedInt(in);
long ptr = buf.allocate(entrySize);
e.setOffset(ptr);
本文整理了Java中hivemall.utils.codec.ZigZagLEB128Codec.readSignedInt()方法的一些代码示例,展示了ZigZagLEB128Codec.readS
我是一名优秀的程序员,十分优秀!