Class StringFrameColumnWriter<T extends ColumnValueSelector>
- java.lang.Object
-
- org.apache.druid.frame.write.columnar.StringFrameColumnWriter<T>
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,FrameColumnWriter
public abstract class StringFrameColumnWriter<T extends ColumnValueSelector> extends Object implements FrameColumnWriter
-
-
Field Summary
Fields Modifier and Type Field Description static long
DATA_OFFSET
protected boolean
multiValue
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
addSelection()
void
close()
abstract List<ByteBuffer>
getUtf8ByteBuffersFromSelector(T selector)
Extracts a list of ByteBuffers from the selector.long
size()
void
undo()
long
writeTo(org.apache.datasketches.memory.WritableMemory memory, long startPosition)
-
-
-
Field Detail
-
DATA_OFFSET
public static final long DATA_OFFSET
- See Also:
- Constant Field Values
-
multiValue
protected final boolean multiValue
-
-
Method Detail
-
addSelection
public boolean addSelection()
- Specified by:
addSelection
in interfaceFrameColumnWriter
-
undo
public void undo()
- Specified by:
undo
in interfaceFrameColumnWriter
-
size
public long size()
- Specified by:
size
in interfaceFrameColumnWriter
-
writeTo
public long writeTo(org.apache.datasketches.memory.WritableMemory memory, long startPosition)
- Specified by:
writeTo
in interfaceFrameColumnWriter
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceFrameColumnWriter
-
getUtf8ByteBuffersFromSelector
@Nullable public abstract List<ByteBuffer> getUtf8ByteBuffersFromSelector(T selector)
Extracts a list of ByteBuffers from the selector. Null values are returned asFrameWriterUtils.NULL_STRING_MARKER_ARRAY
.
-
-