public class FloatFieldWriter extends Object implements FieldWriter
BaseFloatColumnValueSelector
and writes field values.
See FloatFieldReader
for format details.Modifier and Type | Field and Description |
---|---|
static byte |
NOT_NULL_BYTE |
static byte |
NULL_BYTE |
static int |
SIZE |
Constructor and Description |
---|
FloatFieldWriter(BaseFloatColumnValueSelector selector) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases resources held by this writer.
|
static float |
detransform(int bits)
Inverse of
transform(float) . |
static int |
transform(float n)
Transforms a float 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 FloatFieldWriter(BaseFloatColumnValueSelector selector)
public long writeTo(org.apache.datasketches.memory.WritableMemory memory, long position, long maxSize)
FieldWriter
writeTo
in interface FieldWriter
memory
- memory region in little-endian orderposition
- position to writemaxSize
- maximum number of bytes to writepublic void close()
FieldWriter
close
in interface Closeable
close
in interface AutoCloseable
close
in interface FieldWriter
public static int transform(float n)
public static float detransform(int bits)
transform(float)
.Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.