org.apache.spark.unsafe.Platform.putBoolean()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(98)

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

Platform.putBoolean介绍

暂无

代码示例

代码示例来源:origin: org.apache.spark/spark-catalyst_2.11

protected final void writeBoolean(long offset, boolean value) {
 Platform.putBoolean(getBuffer(), offset, value);
}

代码示例来源:origin: org.apache.spark/spark-catalyst

protected final void writeBoolean(long offset, boolean value) {
 Platform.putBoolean(getBuffer(), offset, value);
}

代码示例来源:origin: shunfei/indexr

@Override
public void setBoolean(int ordinal, boolean value) {
  assertIndexIsValid(ordinal);
  Platform.putBoolean(baseObject, getFieldOffset(ordinal), value);
}

代码示例来源:origin: org.apache.spark/spark-catalyst_2.10

public void write(int ordinal, boolean value) {
 final long offset = getFieldOffset(ordinal);
 Platform.putLong(holder.buffer, offset, 0L);
 Platform.putBoolean(holder.buffer, offset, value);
}

代码示例来源:origin: org.apache.spark/spark-catalyst_2.11

public void setBoolean(int ordinal, boolean value) {
 assertIndexIsValid(ordinal);
 Platform.putBoolean(baseObject, getElementOffset(ordinal, 1), value);
}

代码示例来源:origin: org.apache.spark/spark-catalyst_2.10

public void setNullBoolean(int ordinal) {
 setNullBit(ordinal);
 // put zero into the corresponding field when set null
 Platform.putBoolean(holder.buffer, getElementOffset(ordinal, 1), false);
}

代码示例来源:origin: org.apache.spark/spark-catalyst_2.10

public void write(int ordinal, boolean value) {
 assertIndexIsValid(ordinal);
 Platform.putBoolean(holder.buffer, getElementOffset(ordinal, 1), value);
}

代码示例来源:origin: org.apache.spark/spark-catalyst_2.10

public void setBoolean(int ordinal, boolean value) {
 assertIndexIsValid(ordinal);
 Platform.putBoolean(baseObject, getElementOffset(ordinal, 1), value);
}

代码示例来源:origin: org.apache.spark/spark-catalyst

public void setBoolean(int ordinal, boolean value) {
 assertIndexIsValid(ordinal);
 Platform.putBoolean(baseObject, getElementOffset(ordinal, 1), value);
}

代码示例来源:origin: org.apache.spark/spark-catalyst

@Override
public void setBoolean(int ordinal, boolean value) {
 assertIndexIsValid(ordinal);
 setNotNullAt(ordinal);
 Platform.putBoolean(baseObject, getFieldOffset(ordinal), value);
}

代码示例来源:origin: org.apache.spark/spark-catalyst_2.11

@Override
public void setBoolean(int ordinal, boolean value) {
 assertIndexIsValid(ordinal);
 setNotNullAt(ordinal);
 Platform.putBoolean(baseObject, getFieldOffset(ordinal), value);
}

代码示例来源:origin: org.apache.spark/spark-catalyst_2.10

@Override
public void setBoolean(int ordinal, boolean value) {
 assertIndexIsValid(ordinal);
 setNotNullAt(ordinal);
 Platform.putBoolean(baseObject, getFieldOffset(ordinal), value);
}

相关文章