Package ai.chalk.internal.arrow
Class FeatherProcessor
java.lang.Object
ai.chalk.internal.arrow.FeatherProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.arrow.vector.table.TableconvertBytesToTable(byte[] bytes, org.apache.arrow.memory.BufferAllocator allocator) static ArrayList<StructEntry>getEntries(Object obj) static ArrayList<StructEntry>getEntriesFromMap(Map<String, ?> obj) static ArrayList<StructEntry>static org.apache.arrow.vector.table.TablegetTableIfBatchSizeOne(byte[] bytes, org.apache.arrow.memory.BufferAllocator allocator) static byte[]inputsToArrowBytes(Map<String, List<?>> inputs, org.apache.arrow.memory.BufferAllocator allocator) static org.apache.arrow.vector.table.TableinputsToTable(Map<String, List<?>> inputs, org.apache.arrow.memory.BufferAllocator allocator) static voidwriteValue(org.apache.arrow.vector.complex.writer.BaseWriter writer, Object value, org.apache.arrow.memory.BufferAllocator allocator)
-
Field Details
-
ALLOCATOR_SIZE_REQUEST
public static final long ALLOCATOR_SIZE_REQUEST- See Also:
-
ALLOCATOR_SIZE_RESPONSE
public static final long ALLOCATOR_SIZE_RESPONSE- See Also:
-
ALLOCATOR_SIZE_ROOT
public static final long ALLOCATOR_SIZE_ROOT- See Also:
-
ALLOCATOR_SIZE_TEST
public static final long ALLOCATOR_SIZE_TEST- See Also:
-
-
Constructor Details
-
FeatherProcessor
public FeatherProcessor()
-
-
Method Details
-
getEntriesFromMap
-
getEntriesFromObject
- Throws:
Exception
-
getEntries
- Throws:
Exception
-
writeValue
public static void writeValue(org.apache.arrow.vector.complex.writer.BaseWriter writer, Object value, org.apache.arrow.memory.BufferAllocator allocator) throws Exception - Throws:
Exception
-
inputsToArrowBytes
public static byte[] inputsToArrowBytes(Map<String, List<?>> inputs, org.apache.arrow.memory.BufferAllocator allocator) throws Exception- Throws:
Exception
-
getTableIfBatchSizeOne
public static org.apache.arrow.vector.table.Table getTableIfBatchSizeOne(byte[] bytes, org.apache.arrow.memory.BufferAllocator allocator) throws Exception - Throws:
Exception
-
convertBytesToTable
public static org.apache.arrow.vector.table.Table convertBytesToTable(byte[] bytes, org.apache.arrow.memory.BufferAllocator allocator) throws Exception - Throws:
Exception
-
inputsToTable
public static org.apache.arrow.vector.table.Table inputsToTable(Map<String, List<?>> inputs, org.apache.arrow.memory.BufferAllocator allocator) throws Exception- Throws:
Exception
-