public class DoubleFieldWriter extends Object implements FieldWriter
BaseDoubleColumnValueSelector and writes field values.
See DoubleFieldReader for format details.| Modifier and Type | Field and Description |
|---|---|
static byte |
NOT_NULL_BYTE |
static byte |
NULL_BYTE |
static int |
SIZE |
| Constructor and Description |
|---|
DoubleFieldWriter(BaseDoubleColumnValueSelector selector) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases resources held by this writer.
|
static double |
detransform(long bits)
Inverse of
transform(double). |
static long |
transform(double n)
Transforms a double into a form where it can be compared as unsigned bytes without decoding.
|
long |
writeTo(org.apache.datasketches.memory.WritableMemory memory,
long position,
long maxSize)
Writes the current selection at the given memory position.
|
public static final int SIZE
public static final byte NULL_BYTE
public static final byte NOT_NULL_BYTE
public DoubleFieldWriter(BaseDoubleColumnValueSelector selector)
public long writeTo(org.apache.datasketches.memory.WritableMemory memory,
long position,
long maxSize)
FieldWriterwriteTo in interface FieldWritermemory - memory region in little-endian orderposition - position to writemaxSize - maximum number of bytes to writepublic void close()
FieldWriterclose in interface Closeableclose in interface AutoCloseableclose in interface FieldWriterpublic static long transform(double n)
public static double detransform(long bits)
transform(double).Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.