io.protostuff.Output.writeDouble()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(146)

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

Output.writeDouble介绍

[英]Writes a double field.
[中]写入一个双字段。

代码示例

代码示例来源:origin: protostuff/protostuff

@Override
public void writeDouble(int fieldNumber, double value, boolean repeated) throws IOException
{
  output.writeDouble(fieldNumber, value, repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
public void writeTo(Output output, int number, Double value,
    boolean repeated) throws IOException
{
  output.writeDouble(number, value.doubleValue(), repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
public void writeTo(Output output, int number, Double value,
    boolean repeated) throws IOException
{
  output.writeDouble(number, value.doubleValue(), repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
public void writeTo(Output output, int number, Double value,
    boolean repeated) throws IOException
{
  output.writeDouble(number, value.doubleValue(), repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
    boolean repeated) throws IOException
{
  output.writeDouble(number, input.readDouble(), repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
    boolean repeated) throws IOException
{
  output.writeDouble(number, input.readDouble(), repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
    boolean repeated) throws IOException
{
  output.writeDouble(number, input.readDouble(), repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
public void writeTo(Output output, FPNumbers message) throws IOException
{
  if (message.floatValue != null)
    output.writeFloat(1, message.floatValue, false);
  if (message.doubleValue != null)
    output.writeDouble(2, message.doubleValue, false);
}

代码示例来源:origin: protostuff/protostuff

output.writeDouble(ID_ARRAY_DATA, array[i], true);
output.writeDouble(ID_ARRAY_DATA, v, true);

代码示例来源:origin: protostuff/protostuff

output.writeDouble(ID_ARRAY_DATA, array[i], true);
output.writeDouble(ID_ARRAY_DATA, v, true);

代码示例来源: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

output.writeDouble(8, value, true);

代码示例来源:origin: dremio/dremio-oss

public void writeTo(Output output, Affinity message) throws IOException
{
  if(message.host != null)
    output.writeString(1, message.host, false);
  if(message.factor != null)
    output.writeDouble(2, message.factor, false);
}

代码示例来源:origin: dremio/dremio-oss

@Override
 public void writeTo(Output output, Foo message) throws IOException {
   output.writeDouble(1, message.bar, false);
 }
};

代码示例来源:origin: dremio/dremio-oss

public void writeTo(Output output, MetricValue message) throws IOException
{
  if(message.metricId != 0)
    output.writeInt32(1, message.metricId, false);
  if(message.longValue != 0)
    output.writeInt64(2, message.longValue, false);
  if(message.doubleValue != 0)
    output.writeDouble(3, message.doubleValue, false);
}

代码示例来源:origin: dremio/dremio-oss

public void writeTo(Output output, MaterializationMetrics message) throws IOException
{
  if(message.footprint == null)
    throw new UninitializedMessageException(message);
  output.writeUInt64(1, message.footprint, false);
  if(message.originalCost == null)
    throw new UninitializedMessageException(message);
  output.writeDouble(2, message.originalCost, false);
}

代码示例来源:origin: dremio/dremio-oss

public void writeTo(Output output, ResourceSchedulingProperties message) throws IOException
{
  if(message.queryCost != 0)
    output.writeDouble(1, message.queryCost, false);
  if(message.clientType != null)
    output.writeString(2, message.clientType, false);
  if(message.queryType != null)
    output.writeString(3, message.queryType, false);
  if(message.tag != null)
    output.writeString(4, message.tag, false);
}

代码示例来源:origin: dremio/dremio-oss

public void writeTo(Output output, MaterializationMetrics message) throws IOException
{
  if(message.footprint == null)
    throw new UninitializedMessageException(message);
  output.writeInt64(1, message.footprint, false);
  if(message.originalCost == null)
    throw new UninitializedMessageException(message);
  output.writeDouble(2, message.originalCost, false);
  if(message.numFiles != null && message.numFiles != DEFAULT_NUM_FILES)
    output.writeInt32(3, message.numFiles, false);
  if(message.medianFileSize != null && message.medianFileSize != DEFAULT_MEDIAN_FILE_SIZE)
    output.writeInt64(4, message.medianFileSize, false);
}

代码示例来源:origin: dremio/dremio-oss

public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.UserBitShared.MetricValue message) throws java.io.IOException
{
  if(message.hasMetricId())
    output.writeInt32(1, message.getMetricId(), false);
  if(message.hasLongValue())
    output.writeInt64(2, message.getLongValue(), false);
  if(message.hasDoubleValue())
    output.writeDouble(3, message.getDoubleValue(), false);
}
public boolean isInitialized(com.dremio.exec.proto.UserBitShared.MetricValue message)

代码示例来源:origin: dremio/dremio-oss

public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.UserBitShared.ResourceSchedulingProperties message) throws java.io.IOException
{
  if(message.hasQueryCost())
    output.writeDouble(1, message.getQueryCost(), false);
  if(message.hasClientType())
    output.writeString(2, message.getClientType(), false);
  if(message.hasQueryType())
    output.writeString(3, message.getQueryType(), false);
  if(message.hasTag())
    output.writeString(4, message.getTag(), false);
}
public boolean isInitialized(com.dremio.exec.proto.UserBitShared.ResourceSchedulingProperties message)

相关文章