Package io.deephaven.kafka.ingest
Class JsonNodeChunkAdapter
java.lang.Object
io.deephaven.kafka.ingest.MultiFieldChunkAdapter
io.deephaven.kafka.ingest.JsonNodeChunkAdapter
- All Implemented Interfaces:
KeyOrValueProcessor
-
Method Summary
Modifier and TypeMethodDescriptionstatic JsonNodeChunkAdapter
make
(TableDefinition definition, IntFunction<ChunkType> chunkTypeForIndex, Map<String, String> jsonPointerStrToColumnNames, boolean allowNulls) Create a JsonRecordChunkAdapter.Methods inherited from class io.deephaven.kafka.ingest.MultiFieldChunkAdapter
chunkOffsets, handleChunk
-
Method Details
-
make
public static JsonNodeChunkAdapter make(TableDefinition definition, IntFunction<ChunkType> chunkTypeForIndex, Map<String, String> jsonPointerStrToColumnNames, boolean allowNulls) Create a JsonRecordChunkAdapter.- Parameters:
definition
- the definition of the output tablechunkTypeForIndex
- a function from column index to chunk typejsonPointerStrToColumnNames
- a map from JSON pointer strings to Deephaven column namesallowNulls
- true if null records should be allowed, if false then an ISE is thrown- Returns:
- a JsonRecordChunkAdapter for the given definition and column mapping
-