Class FeatherProcessor

java.lang.Object
ai.chalk.internal.arrow.FeatherProcessor

public class FeatherProcessor extends Object
  • Field Details

  • Constructor Details

    • FeatherProcessor

      public FeatherProcessor()
  • Method Details

    • getEntriesFromMap

      public static ArrayList<StructEntry> getEntriesFromMap(Map<String,?> obj)
    • getEntriesFromObject

      public static ArrayList<StructEntry> getEntriesFromObject(Object obj) throws Exception
      Throws:
      Exception
    • getEntries

      public static ArrayList<StructEntry> getEntries(Object obj) throws Exception
      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