Class BytesProducer

java.lang.Object
ai.chalk.internal.bytes.BytesProducer

public class BytesProducer extends Object
  • Constructor Details

    • BytesProducer

      public BytesProducer()
  • Method Details

    • buildJsonHeader

      public static Map<String,Object> buildJsonHeader(OnlineQueryParams params)
      Builds a JSON header map from OnlineQueryParams object This method extracts all the fields from params into a map that will be serialized as JSON
      Parameters:
      params - The query parameters object
      Returns:
      A map containing all the fields from params that should be included in the JSON header
    • buildJsonOnlineQueryBody

      public static Map<String,Object> buildJsonOnlineQueryBody(OnlineQueryParamsComplete params)
    • hasHasManyInputs

      public static boolean hasHasManyInputs(OnlineQueryParams params)
    • convertOnlineQueryParamsToBytes

      public static byte[] convertOnlineQueryParamsToBytes(OnlineQueryParamsComplete params, org.apache.arrow.memory.BufferAllocator allocator) throws Exception
      Throws:
      Exception
    • chalkMarshal

      public static byte[] chalkMarshal(Map<String,Object> attrs) throws Exception
      Throws:
      Exception