Class ArrowResponse.ResponseSegment
java.lang.Object
org.elasticsearch.xpack.esql.arrow.ArrowResponse.ResponseSegment
- Enclosing class:
ArrowResponse
An Arrow response is composed of different segments, each being a set of chunks:
the schema header, the data buffers, and the trailer.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected static WritableByteChannelarrowOut(BytesStream output) Adapts aBytesStreamso that Arrow can write to it.protected abstract voidencodeChunk(int sizeHint, RecyclerBytesStreamOutput out) final ReleasableBytesReferenceencodeChunk(int sizeHint, Recycler<org.apache.lucene.util.BytesRef> recycler) protected abstract booleanisDone()
-
Field Details
-
response
-
-
Method Details
-
encodeChunk
public final ReleasableBytesReference encodeChunk(int sizeHint, Recycler<org.apache.lucene.util.BytesRef> recycler) throws IOException - Throws:
IOException
-
encodeChunk
- Throws:
IOException
-
isDone
protected abstract boolean isDone() -
arrowOut
Adapts aBytesStreamso that Arrow can write to it.
-