- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.yahoo.memory.WritableMemory.getArray()
方法的一些代码示例,展示了WritableMemory.getArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WritableMemory.getArray()
方法的具体详情如下:
包路径:com.yahoo.memory.WritableMemory
类名称:WritableMemory
方法名:getArray
[英]Returns the primitive backing array, otherwise null.
[中]返回基元支持数组,否则为null。
代码示例来源:origin: DataSketches/sketches-core
final void updateMemory(final WritableMemory newWmem) {
wmem = newWmem;
mem = newWmem;
memObj = wmem.getArray();
memAdd = wmem.getCumulativeOffset(0L);
}
代码示例来源:origin: DataSketches/sketches-core
DirectHllArray(final int lgConfigK, final TgtHllType tgtHllType, final WritableMemory wmem) {
super(lgConfigK, tgtHllType, CurMode.HLL);
this.wmem = wmem;
mem = wmem;
memObj = wmem.getArray();
memAdd = wmem.getCumulativeOffset(0L);
compact = extractCompactFlag(mem);
assert !compact;
}
代码示例来源:origin: DataSketches/sketches-core
DirectHllArray(final int lgConfigK, final TgtHllType tgtHllType, final Memory mem) {
super(lgConfigK, tgtHllType, CurMode.HLL);
wmem = null;
this.mem = mem;
memObj = ((WritableMemory) mem).getArray();
memAdd = mem.getCumulativeOffset(0L);
compact = extractCompactFlag(mem);
}
代码示例来源:origin: DataSketches/sketches-core
DirectCouponList(final int lgConfigK, final TgtHllType tgtHllType, final CurMode curMode,
final WritableMemory wmem) {
super(lgConfigK, tgtHllType, curMode);
this.wmem = wmem;
mem = wmem;
memObj = wmem.getArray();
memAdd = wmem.getCumulativeOffset(0L);
compact = extractCompactFlag(wmem);
assert !compact;
}
代码示例来源:origin: DataSketches/sketches-core
DirectCouponList(final int lgConfigK, final TgtHllType tgtHllType, final CurMode curMode,
final Memory mem) {
super(lgConfigK, tgtHllType, curMode);
wmem = null;
this.mem = mem;
memObj = ((WritableMemory) mem).getArray();
memAdd = mem.getCumulativeOffset(0L);
compact = extractCompactFlag(mem);
}
代码示例来源:origin: DataSketches/sketches-core
/**
* Return this sketch as a compressed byte array.
* @return this sketch as a compressed byte array.
*/
public byte[] toByteArray() {
final CompressedState state = CompressedState.compress(this);
final long cap = state.getRequiredSerializedBytes();
final WritableMemory wmem = WritableMemory.allocate((int) cap);
state.exportToMemory(wmem);
return (byte[]) wmem.getArray();
}
代码示例来源:origin: DataSketches/sketches-core
return emptyOrNull(seed, hashOut);
final Object uObj = ((WritableMemory) mem).getArray(); //may be null
long cumOff = mem.getCumulativeOffset() + offsetBytes;
代码示例来源:origin: DataSketches/sketches-core
@SuppressWarnings("unused")
@Test
public void checkExtractFlags() {
int bytes = HllSketch.getMaxUpdatableSerializationBytes(4, TgtHllType.HLL_4);
WritableMemory wmem = WritableMemory.allocate(bytes);
Object memObj = wmem.getArray();
long memAdd = wmem.getCumulativeOffset(0L);
HllSketch sk = new HllSketch(4, TgtHllType.HLL_4, wmem);
int flags = extractFlags(wmem);
assertEquals(flags, EMPTY_FLAG_MASK);
}
代码示例来源:origin: com.yahoo.datasketches/sketches-core
DirectCompactSketch(final Memory mem) {
mem_ = mem;
memObj_ = ((WritableMemory)mem).getArray();
memAdd_ = mem.getCumulativeOffset(0L);
}
代码示例来源:origin: com.yahoo.datasketches/sketches-core
final void updateMemory(final WritableMemory newWmem) {
wmem = newWmem;
mem = newWmem;
memObj = wmem.getArray();
memAdd = wmem.getCumulativeOffset(0L);
}
代码示例来源:origin: DataSketches/sketches-core
println(CpcSketch.toString((byte[])wmem.getArray(), true));
checkFirst8(wmem, format, lgK, (byte) 0);
assertFalse(hasHip(wmem));
代码示例来源:origin: com.yahoo.datasketches/sketches-core
DirectCouponList(final int lgConfigK, final TgtHllType tgtHllType, final CurMode curMode,
final Memory mem) {
super(lgConfigK, tgtHllType, curMode);
wmem = null;
this.mem = mem;
memObj = ((WritableMemory) mem).getArray();
memAdd = mem.getCumulativeOffset(0L);
compact = extractCompactFlag(mem);
}
代码示例来源:origin: com.yahoo.datasketches/sketches-core
DirectCouponList(final int lgConfigK, final TgtHllType tgtHllType, final CurMode curMode,
final WritableMemory wmem) {
super(lgConfigK, tgtHllType, curMode);
this.wmem = wmem;
mem = wmem;
memObj = wmem.getArray();
memAdd = wmem.getCumulativeOffset(0L);
compact = extractCompactFlag(wmem);
assert !compact;
}
代码示例来源:origin: com.yahoo.datasketches/sketches-core
DirectHllArray(final int lgConfigK, final TgtHllType tgtHllType, final WritableMemory wmem) {
super(lgConfigK, tgtHllType, CurMode.HLL);
this.wmem = wmem;
mem = wmem;
memObj = wmem.getArray();
memAdd = wmem.getCumulativeOffset(0L);
compact = extractCompactFlag(mem);
assert !compact;
}
代码示例来源:origin: com.yahoo.datasketches/sketches-core
DirectHllArray(final int lgConfigK, final TgtHllType tgtHllType, final Memory mem) {
super(lgConfigK, tgtHllType, CurMode.HLL);
wmem = null;
this.mem = mem;
memObj = ((WritableMemory) mem).getArray();
memAdd = mem.getCumulativeOffset(0L);
compact = extractCompactFlag(mem);
}
我正在制作一个系统来检测用户是否自动捐赠。它首先从表中获取记录,其中收集的列设置为 0,用户名是当前用户的用户名。有一个 items 列,其中包含一个 json 编码数组,其中包含他们应该接收的内容。
我有下表: CREATE TABLE "mytable" ( ... "columns" ARRAY NOT NULL, ... ); 我通过 H2 Web 控制台手动在数组中插入元素: INSE
使用 MySQL 5.5、STS 2.9.2、mysql-connector-java-5.1.21-bin.jar 我想从 ResultSet 中获取一个数组。 所以我这样编码: try { C
我正在尝试获取 ResultSet 并将其内容添加到字符串数组中。 Statement statement = conn.createStatement(); ResultSet resultSet
本文整理了Java中com.yahoo.memory.WritableMemory.getArray()方法的一些代码示例,展示了WritableMemory.getArray()的具体用法。这些代码
目标 1 是只允许通过 getArray获取arr 信息。 目标 2 是只允许通过 addToArray设置arr 信息。 function TestObj(){ var arr = [];
CopyOnWriteArrayList 中的几乎所有方法都使用 getArray() 而不是直接调用数组。这种行为有原因吗?例如: public int size() { return ge
这是试图获取有关某些随机 PDF 的信息的 5 行代码: MonoTouch.CoreGraphics.CGPDFDocument oDoc = MonoTouch.CoreGraph
http://docs.oracle.com/javase/7/docs/api/java/sql/ResultSet.html#getArray(java.lang.String) 似乎没有提到这种
我正在尝试在我的应用中接收短信。 我的项目中有一个 BroadcastReceiver 类,但我收到一个运行时错误: System.InvalidCastException: Cannot cast
我是一名优秀的程序员,十分优秀!