public class ComplexFieldWriter extends Object implements FieldWriter
BaseObjectColumnValueSelector and uses ComplexMetricSerde.toBytes(java.lang.Object) to write complex objects.
See ComplexFieldReader for format details.| Modifier and Type | Field and Description |
|---|---|
static byte |
NOT_NULL_BYTE |
static byte |
NULL_BYTE |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases resources held by this writer.
|
long |
writeTo(org.apache.datasketches.memory.WritableMemory memory,
long position,
long maxSize)
Writes the current selection at the given memory position.
|
public static final byte NULL_BYTE
public static final byte NOT_NULL_BYTE
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 FieldWriterCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.