Class BlockConverter.TransformedBytesRef
java.lang.Object
org.elasticsearch.xpack.esql.arrow.BlockConverter
org.elasticsearch.xpack.esql.arrow.BlockConverter.BytesRefConverter
org.elasticsearch.xpack.esql.arrow.BlockConverter.TransformedBytesRef
- Enclosing class:
BlockConverter
Conversion of ByteRefs where each value is itself converted to a different format.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.arrow.BlockConverter
BlockConverter.AsBoolean, BlockConverter.AsFloat64, BlockConverter.AsInt32, BlockConverter.AsInt64, BlockConverter.AsNull, BlockConverter.AsVarBinary, BlockConverter.AsVarChar, BlockConverter.BufWriter, BlockConverter.BytesRefConverter, BlockConverter.TransformedBytesRef -
Constructor Summary
ConstructorsConstructorDescriptionTransformedBytesRef(String esqlType, org.apache.arrow.vector.types.Types.MinorType minorType, BiFunction<org.apache.lucene.util.BytesRef, org.apache.lucene.util.BytesRef, org.apache.lucene.util.BytesRef> valueConverter) -
Method Summary
Modifier and TypeMethodDescriptionvoidconvert(Block b, boolean multivalued, List<org.apache.arrow.memory.ArrowBuf> bufs, List<BlockConverter.BufWriter> bufWriters) Convert a block into Arrow buffers.Methods inherited from class org.elasticsearch.xpack.esql.arrow.BlockConverter
arrowFieldType, esqlType, nullValuesCount
-
Constructor Details
-
TransformedBytesRef
public TransformedBytesRef(String esqlType, org.apache.arrow.vector.types.Types.MinorType minorType, BiFunction<org.apache.lucene.util.BytesRef, org.apache.lucene.util.BytesRef, org.apache.lucene.util.BytesRef> valueConverter) - Parameters:
esqlType- ESQL type nameminorType- Arrow typevalueConverter- a function that takes (value, scratch) input parameters and returns the transformed value
-
-
Method Details
-
convert
public void convert(Block b, boolean multivalued, List<org.apache.arrow.memory.ArrowBuf> bufs, List<BlockConverter.BufWriter> bufWriters) Description copied from class:BlockConverterConvert a block into Arrow buffers.- Overrides:
convertin classBlockConverter.BytesRefConverter- 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
-