Class BlockArrowFormatter.AsDateRange
java.lang.Object
org.elasticsearch.xpack.esql.formatter.arrow.BlockArrowFormatter
org.elasticsearch.xpack.esql.formatter.arrow.BlockArrowFormatter.AsDateRange
- Enclosing class:
BlockArrowFormatter
Conversion of LongRangeBlocks (DATE_RANGE) to an Arrow struct with "from" and "to" timestamp[ms] fields.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.formatter.arrow.BlockArrowFormatter
BlockArrowFormatter.AsBoolean, BlockArrowFormatter.AsDateRange, BlockArrowFormatter.AsFloat64, BlockArrowFormatter.AsInt32, BlockArrowFormatter.AsInt64, BlockArrowFormatter.AsNull, BlockArrowFormatter.AsVarBinary, BlockArrowFormatter.AsVarChar, BlockArrowFormatter.BufWriter, BlockArrowFormatter.BytesReFormatter, BlockArrowFormatter.TransformedBytesRef -
Field Summary
Fields inherited from class org.elasticsearch.xpack.esql.formatter.arrow.BlockArrowFormatter
ESQL_TYPE_METADATA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFieldNodes(Block block, boolean multivalued, List<org.apache.arrow.vector.ipc.message.ArrowFieldNode> nodes) Add Arrow field nodes for this block.org.apache.arrow.vector.types.pojo.FieldarrowField(String name) voidconvert(Block b, boolean multivalued, List<org.apache.arrow.memory.ArrowBuf> bufs, List<BlockArrowFormatter.BufWriter> bufWriters) Convert a block into Arrow buffers.Methods inherited from class org.elasticsearch.xpack.esql.formatter.arrow.BlockArrowFormatter
nullValuesCount
-
Constructor Details
-
AsDateRange
-
-
Method Details
-
arrowField
- Overrides:
arrowFieldin classBlockArrowFormatter
-
addFieldNodes
public void addFieldNodes(Block block, boolean multivalued, List<org.apache.arrow.vector.ipc.message.ArrowFieldNode> nodes) Description copied from class:BlockArrowFormatterAdd Arrow field nodes for this block. Must be called beforeBlockArrowFormatter.convert(org.elasticsearch.compute.data.Block, boolean, java.util.List<org.apache.arrow.memory.ArrowBuf>, java.util.List<org.elasticsearch.xpack.esql.formatter.arrow.BlockArrowFormatter.BufWriter>). Override for nested types that contribute multiple nodes (e.g., struct).- Overrides:
addFieldNodesin classBlockArrowFormatter
-
convert
public void convert(Block b, boolean multivalued, List<org.apache.arrow.memory.ArrowBuf> bufs, List<BlockArrowFormatter.BufWriter> bufWriters) Description copied from class:BlockArrowFormatterConvert a block into Arrow buffers.- Specified by:
convertin classBlockArrowFormatter- Parameters:
b- the ESQL blockmultivalued- is this column multivalued? This block may not, but some blocks in that column are.bufs- arrow buffers, used to track sizesbufWriters- buffer writers, that will do the actual work of writing the data
-