当前位置: 首页>>代码示例>>Java>>正文


Java GridUnsafe.getDouble方法代码示例

本文整理汇总了Java中org.apache.ignite.internal.util.GridUnsafe.getDouble方法的典型用法代码示例。如果您正苦于以下问题:Java GridUnsafe.getDouble方法的具体用法?Java GridUnsafe.getDouble怎么用?Java GridUnsafe.getDouble使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.ignite.internal.util.GridUnsafe的用法示例。


在下文中一共展示了GridUnsafe.getDouble方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: readDouble

import org.apache.ignite.internal.util.GridUnsafe; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public double readDouble() {
    lastFinished = buf.remaining() >= 8;

    if (lastFinished) {
        int pos = buf.position();

        buf.position(pos + 8);

        long off = baseOff + pos;

        return BIG_ENDIAN ? GridUnsafe.getDoubleLE(heapArr, off) : GridUnsafe.getDouble(heapArr, off);
    }
    else
        return 0;
}
 
开发者ID:apache,项目名称:ignite,代码行数:17,代码来源:DirectByteBufferStreamImplV2.java

示例2: readDouble

import org.apache.ignite.internal.util.GridUnsafe; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public double readDouble() {
    lastFinished = buf.remaining() >= 8;

    if (lastFinished) {
        int pos = buf.position();

        buf.position(pos + 8);

        return GridUnsafe.getDouble(heapArr, baseOff + pos);
    }
    else
        return 0;
}
 
开发者ID:apache,项目名称:ignite,代码行数:15,代码来源:DirectByteBufferStreamImplV1.java

示例3: get

import org.apache.ignite.internal.util.GridUnsafe; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public double get(int x, int y) {
    return GridUnsafe.getDouble(pointerOffset(x, y));
}
 
开发者ID:Luodian,项目名称:Higher-Cloud-Computing-Project,代码行数:5,代码来源:DenseOffHeapMatrixStorage.java

示例4: get

import org.apache.ignite.internal.util.GridUnsafe; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public double get(int i) {
    return GridUnsafe.getDouble(pointerOffset(i));
}
 
开发者ID:Luodian,项目名称:Higher-Cloud-Computing-Project,代码行数:5,代码来源:DenseLocalOffHeapVectorStorage.java

示例5: getDouble

import org.apache.ignite.internal.util.GridUnsafe; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public double getDouble(int idx) {
    ensure(idx, 8);

    return GridUnsafe.getDouble(ptr + idx);
}
 
开发者ID:apache,项目名称:ignite,代码行数:7,代码来源:OffheapRawMemory.java

示例6: readDouble

import org.apache.ignite.internal.util.GridUnsafe; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public double readDouble() throws IOException {
    checkRange(8);

    double res = GridUnsafe.getDouble(buf, BYTE_ARR_OFF + pos);

    pos += 8;

    return res;
}
 
开发者ID:apache,项目名称:ignite,代码行数:11,代码来源:HadoopDirectDataInput.java

示例7: readDouble

import org.apache.ignite.internal.util.GridUnsafe; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public double readDouble() {
    ensureEnoughData(8);

    double res = GridUnsafe.getDouble(data + pos);

    shift(8);

    return res;
}
 
开发者ID:apache,项目名称:ignite,代码行数:11,代码来源:PlatformInputStreamImpl.java

示例8: readDouble

import org.apache.ignite.internal.util.GridUnsafe; //导入方法依赖的package包/类
/**
 * @param ptr Pointer.
 * @return Double value.
 */
public double readDouble(long ptr) {
    return GridUnsafe.getDouble(ptr);
}
 
开发者ID:apache,项目名称:ignite,代码行数:8,代码来源:GridUnsafeMemory.java


注:本文中的org.apache.ignite.internal.util.GridUnsafe.getDouble方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。