Java Code Examples for io.protostuff.Output#writeDouble()

The following examples show how to use io.protostuff.Output#writeDouble() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FieldStat.java    From datawave with Apache License 2.0 5 votes vote down vote up
@Override
public void writeTo(Output output, FieldStat message) throws IOException {
    output.writeString(1, message.field, false);
    output.writeUInt64(2, message.unique, false);
    output.writeUInt64(3, message.observed, false);
    output.writeDouble(4, message.selectivity, false);
}
 
Example 2
Source File: ProtostuffCodecTest.java    From c5-replicator with Apache License 2.0 5 votes vote down vote up
@Override
public void writeTo(Output output, SerObj message) throws IOException {
  output.writeInt32(1, message.id, false);
  output.writeString(2, message.desc, false);
  output.writeInt64(3, message.timestamp, false);
  output.writeDouble(4, message.cost, false);
}
 
Example 3
Source File: TestProtostuffUtils.java    From dremio-oss with Apache License 2.0 4 votes vote down vote up
@Override
public void writeTo(Output output, Foo message) throws IOException {
   output.writeDouble(1, message.bar, false);
}
 
Example 4
Source File: RuntimeUnsafeFieldFactory.java    From protostuff with Apache License 2.0 4 votes vote down vote up
@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
        boolean repeated) throws IOException
{
    output.writeDouble(number, input.readDouble(), repeated);
}
 
Example 5
Source File: RuntimeUnsafeFieldFactory.java    From protostuff with Apache License 2.0 4 votes vote down vote up
@Override
public void writeTo(Output output, int number, Double value,
        boolean repeated) throws IOException
{
    output.writeDouble(number, value.doubleValue(), repeated);
}
 
Example 6
Source File: RuntimeReflectionFieldFactory.java    From protostuff with Apache License 2.0 4 votes vote down vote up
@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
        boolean repeated) throws IOException
{
    output.writeDouble(number, input.readDouble(), repeated);
}
 
Example 7
Source File: RuntimeReflectionFieldFactory.java    From protostuff with Apache License 2.0 4 votes vote down vote up
@Override
public void writeTo(Output output, int number, Double value,
        boolean repeated) throws IOException
{
    output.writeDouble(number, value.doubleValue(), repeated);
}