本文整理了Java中io.protostuff.Output.writeInt64()
方法的一些代码示例,展示了Output.writeInt64()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Output.writeInt64()
方法的具体详情如下:
包路径:io.protostuff.Output
类名称:Output
方法名:writeInt64
[英]Writes a variable long field.
[中]写入变量长字段。
代码示例来源:origin: protostuff/protostuff
@Override
public void writeInt64(int fieldNumber, long value, boolean repeated) throws IOException
{
output.writeInt64(fieldNumber, value, repeated);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void writeTo(Output output, int number, Long value,
boolean repeated) throws IOException
{
output.writeInt64(number, value.longValue(), repeated);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void writeTo(Output output, int number, Long value,
boolean repeated) throws IOException
{
output.writeInt64(number, value.longValue(), repeated);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void writeTo(Output output, int number, Long value,
boolean repeated) throws IOException
{
output.writeInt64(number, value.longValue(), repeated);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
boolean repeated) throws IOException
{
output.writeInt64(number, input.readInt64(), repeated);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
boolean repeated) throws IOException
{
output.writeInt64(number, input.readInt64(), repeated);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
boolean repeated) throws IOException
{
output.writeInt64(number, input.readInt64(), repeated);
}
代码示例来源:origin: protostuff/protostuff
output.writeInt64(ID_ARRAY_DATA, array[i], true);
output.writeInt64(ID_ARRAY_DATA, v, true);
代码示例来源:origin: protostuff/protostuff
output.writeInt64(ID_ARRAY_DATA, array[i], true);
output.writeInt64(ID_ARRAY_DATA, v, true);
代码示例来源:origin: protostuff/protostuff
@Override
public void writeTo(Output output, Baz message) throws IOException
{
if (message.id != 0)
output.writeInt32(1, message.id, false);
if (message.name != null)
output.writeString(2, message.name, false);
if (message.timestamp != 0l)
output.writeInt64(3, message.timestamp, false);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void writeTo(Output output, PojoWithBiggerByteArray message) throws IOException
{
output.writeInt32(1, message.id, false);
output.writeByteArray(2, message.b, false);
output.writeInt64(3, message.ts, false);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void writeTo(Output output, Bar message) throws IOException
{
if (message.someInt != 0)
output.writeInt32(1, message.someInt, false);
if (message.someString != null)
output.writeString(2, message.someString, false);
if (message.someBaz != null)
output.writeObject(3, message.someBaz, Baz.getSchema(), false);
if (message.someEnum != null)
output.writeEnum(4, message.someEnum.number, false);
if (message.someBytes != null)
output.writeBytes(5, message.someBytes, false);
if (message.someBoolean)
output.writeBool(6, message.someBoolean, false);
if (message.someFloat != 0f)
output.writeFloat(7, message.someFloat, false);
if (message.someDouble != 0d)
output.writeDouble(8, message.someDouble, false);
if (message.someLong != 0l)
output.writeInt64(9, message.someLong, false);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void writeTo(Output output, PojoWithInts message) throws IOException
{
if (message.someInt32 != 0)
output.writeInt32(1, message.someInt32, false);
if (message.someUint32 != 0)
output.writeUInt32(2, message.someUint32, false);
if (message.someSint32 != 0)
output.writeSInt32(3, message.someSint32, false);
if (message.someFixed32 != 0)
output.writeFixed32(4, message.someFixed32, false);
if (message.someSfixed32 != 0)
output.writeSFixed32(5, message.someSfixed32, false);
if (message.someInt64 != 0)
output.writeInt64(11, message.someInt64, false);
if (message.someUint64 != 0)
output.writeUInt64(12, message.someUint64, false);
if (message.someSint64 != 0)
output.writeSInt64(13, message.someSint64, false);
if (message.someFixed64 != 0)
output.writeFixed64(14, message.someFixed64, false);
if (message.someSfixed64 != 0)
output.writeSFixed64(15, message.someSfixed64, false);
}
代码示例来源:origin: protostuff/protostuff
output.writeInt64(9, value, true);
代码示例来源:origin: dremio/dremio-oss
public void writeTo(Output output, NodeQueryProfile message) throws IOException
{
if(message.endpoint != null)
output.writeObject(1, message.endpoint, NodeEndpoint.getSchema(), false);
if(message.maxMemoryUsed != 0)
output.writeInt64(2, message.maxMemoryUsed, false);
if(message.timeEnqueuedBeforeSubmitMs != 0)
output.writeInt64(3, message.timeEnqueuedBeforeSubmitMs, false);
}
代码示例来源:origin: dremio/dremio-oss
public void writeTo(Output output, MaterializationDetails message) throws IOException
{
if(message.id != null)
output.writeString(1, message.id, false);
if(message.refreshChainStartTime != null)
output.writeInt64(2, message.refreshChainStartTime, false);
}
代码示例来源:origin: dremio/dremio-oss
public void writeTo(Output output, ArrowRecordBatchSummary message) throws IOException
{
if(message.recordCount != 0)
output.writeInt32(1, message.recordCount, false);
if(message.offset != 0)
output.writeInt64(2, message.offset, false);
}
代码示例来源:origin: dremio/dremio-oss
public void writeTo(Output output, MaterializationUpdate message) throws IOException
{
if(message.timestamp != null)
output.writeInt64(1, message.timestamp, false);
if(message.jobId != null)
output.writeObject(2, message.jobId, com.dremio.service.job.proto.JobId.getSchema(), false);
}
代码示例来源:origin: dremio/dremio-oss
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.ExecProtos.HashAggSpill message) throws java.io.IOException
{
if(message.hasMemoryUse())
output.writeInt64(1, message.getMemoryUse(), false);
}
public boolean isInitialized(com.dremio.exec.proto.ExecProtos.HashAggSpill message)
代码示例来源:origin: dremio/dremio-oss
public void writeTo(io.protostuff.Output output, com.dremio.exec.store.easy.arrow.ArrowFileFormat.ArrowRecordBatchSummary message) throws java.io.IOException
{
if(message.hasRecordCount())
output.writeInt32(1, message.getRecordCount(), false);
if(message.hasOffset())
output.writeInt64(2, message.getOffset(), false);
}
public boolean isInitialized(com.dremio.exec.store.easy.arrow.ArrowFileFormat.ArrowRecordBatchSummary message)
内容来源于网络,如有侵权,请联系作者删除!