io.airlift.slice.Slice.getFloat()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(99)

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

Slice.getFloat介绍

[英]Gets a 32-bit float at the specified absolute index in this buffer.
[中]获取此缓冲区中指定绝对索引处的32位浮点。

代码示例

代码示例来源:origin: prestodb/presto

public float next()
    throws IOException
{
  input.readFully(buffer, 0, SIZE_OF_FLOAT);
  return slice.getFloat(0);
}

代码示例来源:origin: airlift/slice

@Override
public float readFloat()
{
  float v = slice.getFloat(position);
  position += SIZE_OF_FLOAT;
  return v;
}

代码示例来源:origin: io.airlift/slice

@Override
public float readFloat()
{
  float v = slice.getFloat(position);
  position += SIZE_OF_FLOAT;
  return v;
}

代码示例来源:origin: airlift/slice

@Override
public float readFloat()
{
  ensureAvailable(SIZE_OF_FLOAT);
  float v = buffer.getFloat(bufferPosition);
  bufferPosition += SIZE_OF_FLOAT;
  return v;
}

代码示例来源:origin: io.airlift/slice

@Override
public float readFloat()
{
  ensureAvailable(SIZE_OF_FLOAT);
  float v = buffer.getFloat(bufferPosition);
  bufferPosition += SIZE_OF_FLOAT;
  return v;
}

代码示例来源:origin: com.facebook.presto/presto-orc

public float next()
    throws IOException
{
  input.readFully(buffer, 0, SIZE_OF_FLOAT);
  return slice.getFloat(0);
}

代码示例来源:origin: prestosql/presto

public float next()
    throws IOException
{
  input.readFully(buffer, 0, SIZE_OF_FLOAT);
  return slice.getFloat(0);
}

代码示例来源:origin: uk.co.nichesolutions.presto/presto-orc

public float next()
    throws IOException
{
  readFully(input, buffer, 0, SIZE_OF_FLOAT);
  return slice.getFloat(0);
}

代码示例来源:origin: io.prestosql/presto-orc

public float next()
    throws IOException
{
  input.readFully(buffer, 0, SIZE_OF_FLOAT);
  return slice.getFloat(0);
}

代码示例来源:origin: airlift/slice

assertEquals(wrappedFloatArray(floatArray).getFloat(0), floatArray[0]);
assertEquals(wrappedFloatArray(floatArray, 1, 4).getFloat(0), floatArray[1]);
assertEquals(wrappedFloatArray(floatArray, 1, 4).length(), 4 * SIZE_OF_FLOAT);
assertEquals(wrappedFloatArray(floatArray).getFloat(5 * SIZE_OF_FLOAT), floatArray[5]);

代码示例来源:origin: io.airlift/slice

assertEquals(wrappedFloatArray(floatArray).getFloat(0), floatArray[0]);
assertEquals(wrappedFloatArray(floatArray, 1, 4).getFloat(0), floatArray[1]);
assertEquals(wrappedFloatArray(floatArray, 1, 4).length(), 4 * SIZE_OF_FLOAT);
assertEquals(wrappedFloatArray(floatArray).getFloat(5 * SIZE_OF_FLOAT), floatArray[5]);

代码示例来源:origin: uk.co.nichesolutions.presto/presto-main

assertEquals(floatToIntBits(block.getFloat(position, offset)), floatToIntBits(expectedSliceValue.getFloat(offset)));

相关文章