本文整理了Java中io.airlift.slice.Slice.getDouble()
方法的一些代码示例,展示了Slice.getDouble()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Slice.getDouble()
方法的具体详情如下:
包路径:io.airlift.slice.Slice
类名称:Slice
方法名:getDouble
[英]Gets a 64-bit double at the specified absolute index in this buffer.
[中]在此缓冲区中指定的绝对索引处获取64位双精度。
代码示例来源:origin: prestodb/presto
public double next()
throws IOException
{
input.readFully(buffer, 0, SIZE_OF_DOUBLE);
return slice.getDouble(0);
}
代码示例来源:origin: embulk/embulk
public double getDouble(int columnIndex) {
return pageSlice.getDouble(getOffset(columnIndex));
}
代码示例来源:origin: io.airlift/slice
@Override
public double readDouble()
{
double v = slice.getDouble(position);
position += SIZE_OF_DOUBLE;
return v;
}
代码示例来源:origin: airlift/slice
@Override
public double readDouble()
{
double v = slice.getDouble(position);
position += SIZE_OF_DOUBLE;
return v;
}
代码示例来源:origin: uk.co.nichesolutions.presto/presto-main
public static double getDoubleSlice(Slice slice, int offset)
{
return slice.getDouble(offset);
}
代码示例来源:origin: prestosql/presto
public double next()
throws IOException
{
input.readFully(buffer, 0, SIZE_OF_DOUBLE);
return slice.getDouble(0);
}
代码示例来源:origin: com.facebook.presto/presto-orc
public double next()
throws IOException
{
input.readFully(buffer, 0, SIZE_OF_DOUBLE);
return slice.getDouble(0);
}
代码示例来源:origin: airlift/slice
@Override
public double readDouble()
{
ensureAvailable(SIZE_OF_DOUBLE);
double v = buffer.getDouble(bufferPosition);
bufferPosition += SIZE_OF_DOUBLE;
return v;
}
代码示例来源:origin: uk.co.nichesolutions.presto/presto-orc
public double next()
throws IOException
{
readFully(input, buffer, 0, SIZE_OF_DOUBLE);
return slice.getDouble(0);
}
代码示例来源:origin: io.prestosql/presto-orc
public double next()
throws IOException
{
input.readFully(buffer, 0, SIZE_OF_DOUBLE);
return slice.getDouble(0);
}
代码示例来源:origin: io.airlift/slice
@Override
public double readDouble()
{
ensureAvailable(SIZE_OF_DOUBLE);
double v = buffer.getDouble(bufferPosition);
bufferPosition += SIZE_OF_DOUBLE;
return v;
}
代码示例来源:origin: airlift/slice
assertEquals(wrappedDoubleArray(doubleArray).getDouble(0), doubleArray[0]);
assertEquals(wrappedDoubleArray(doubleArray, 1, 4).getDouble(0), doubleArray[1]);
assertEquals(wrappedDoubleArray(doubleArray, 1, 4).length(), 4 * SIZE_OF_DOUBLE);
assertEquals(wrappedDoubleArray(doubleArray).getDouble(5 * SIZE_OF_DOUBLE), doubleArray[5]);
代码示例来源:origin: io.airlift/slice
assertEquals(wrappedDoubleArray(doubleArray).getDouble(0), doubleArray[0]);
assertEquals(wrappedDoubleArray(doubleArray, 1, 4).getDouble(0), doubleArray[1]);
assertEquals(wrappedDoubleArray(doubleArray, 1, 4).length(), 4 * SIZE_OF_DOUBLE);
assertEquals(wrappedDoubleArray(doubleArray).getDouble(5 * SIZE_OF_DOUBLE), doubleArray[5]);
代码示例来源:origin: uk.co.nichesolutions.presto/presto-main
assertEquals(doubleToLongBits(block.getDouble(position, offset)), doubleToLongBits(expectedSliceValue.getDouble(offset)));
内容来源于网络,如有侵权,请联系作者删除!