Class ColumnarFrameWriterFactory
java.lang.Object
org.apache.druid.frame.write.columnar.ColumnarFrameWriterFactory
- All Implemented Interfaces:
FrameWriterFactory
-
Constructor Summary
ConstructorsConstructorDescriptionColumnarFrameWriterFactory(MemoryAllocatorFactory allocatorFactory, RowSignature signature, List<KeyColumn> keyColumns) Create a ColumnarFrameWriterFactory. -
Method Summary
Modifier and TypeMethodDescriptionlongnewFrameWriter(ColumnSelectorFactory columnSelectorFactory) Create a writer whereFrameWriter.addSelection()adds the current row from aColumnSelectorFactory.
-
Constructor Details
-
ColumnarFrameWriterFactory
public ColumnarFrameWriterFactory(MemoryAllocatorFactory allocatorFactory, RowSignature signature, List<KeyColumn> keyColumns) Create a ColumnarFrameWriterFactory.- Parameters:
allocatorFactory- memory allocator; will use as much as possiblesignature- output signature for this frame writerkeyColumns- columns to sort by, if any. May be empty.- Throws:
UnsupportedColumnTypeException- if "signature" contains any type that we cannot handle
-
-
Method Details
-
newFrameWriter
Description copied from interface:FrameWriterFactoryCreate a writer whereFrameWriter.addSelection()adds the current row from aColumnSelectorFactory.- Specified by:
newFrameWriterin interfaceFrameWriterFactory
-
allocatorCapacity
public long allocatorCapacity()- Specified by:
allocatorCapacityin interfaceFrameWriterFactory
-
signature
- Specified by:
signaturein interfaceFrameWriterFactory
-
frameType
- Specified by:
frameTypein interfaceFrameWriterFactory
-