Package ai.chalk.internal.bytes
Class BytesProducer
java.lang.Object
ai.chalk.internal.bytes.BytesProducer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildJsonHeader(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 JSONstatic byte[]chalkMarshal(Map<String, Object> attrs) static byte[]convertOnlineQueryParamsToBytes(OnlineQueryParamsComplete params, org.apache.arrow.memory.BufferAllocator allocator) static booleanhasHasManyInputs(OnlineQueryParams params)
-
Constructor Details
-
BytesProducer
public BytesProducer()
-
-
Method Details
-
buildJsonHeader
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
-
hasHasManyInputs
-
convertOnlineQueryParamsToBytes
public static byte[] convertOnlineQueryParamsToBytes(OnlineQueryParamsComplete params, org.apache.arrow.memory.BufferAllocator allocator) throws Exception - Throws:
Exception
-
chalkMarshal
- Throws:
Exception
-