Class ArrowByteArrayConsumer
- java.lang.Object
-
- com.alibaba.fastjson2.support.arrow.ArrowByteArrayConsumer
-
- All Implemented Interfaces:
ByteArrayValueConsumer
public class ArrowByteArrayConsumer extends Object implements ByteArrayValueConsumer
-
-
Constructor Summary
Constructors Constructor Description ArrowByteArrayConsumer(org.apache.arrow.vector.types.pojo.Schema schema, int rowCount, ObjIntConsumer<org.apache.arrow.vector.VectorSchemaRoot> rootConsumer, Consumer<Long[]> committer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(int row, int column, byte[] bytes, int off, int len, Charset charset)voidafterRow(int row)voidallocateNew(int blockSize)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alibaba.fastjson2.reader.ByteArrayValueConsumer
beforeRow, end, start
-
-
-
-
Constructor Detail
-
ArrowByteArrayConsumer
public ArrowByteArrayConsumer(org.apache.arrow.vector.types.pojo.Schema schema, int rowCount, ObjIntConsumer<org.apache.arrow.vector.VectorSchemaRoot> rootConsumer, Consumer<Long[]> committer)
-
-
Method Detail
-
afterRow
public void afterRow(int row)
- Specified by:
afterRowin interfaceByteArrayValueConsumer
-
allocateNew
public void allocateNew(int blockSize)
-
accept
public void accept(int row, int column, byte[] bytes, int off, int len, Charset charset)- Specified by:
acceptin interfaceByteArrayValueConsumer
-
-