Examples of appendDouble()


Examples of io.airlift.slice.DynamicSliceOutput.appendDouble()

        else {
            DynamicSliceOutput sliceOutput = new DynamicSliceOutput(state.getDigest().estimatedSerializedSizeInBytes() + SIZE_OF_DOUBLE);
            // write digest
            state.getDigest().serialize(sliceOutput);
            // write percentile
            sliceOutput.appendDouble(state.getPercentile());

            Slice slice = sliceOutput.slice();
            VARCHAR.writeSlice(out, slice);
        }
    }
View Full Code Here

Examples of io.airlift.slice.SliceOutput.appendDouble()

    {
        // Serialization format is (<key:int><min:double><max:double>)*
        SliceOutput output = Slices.allocate((SizeOf.SIZE_OF_INT + 2 * SizeOf.SIZE_OF_DOUBLE) * mins.size()).getOutput();
        for (int key : mins.keySet()) {
            output.appendInt(key);
            output.appendDouble(mins.get(key));
            output.appendDouble(maxs.get(key));
        }
        return output.slice().getBytes();
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.