detectImportOptions
This function requires Streaming Data Framework for MATLAB® Production Server™.
Description
obtains the event schema from an event stream and based on that schema, returns data import
options in the opts
= detectImportOptions(stream
)ImportOptions
object opts
. The schema includes the names and data types of variables in
the event body.
You can modify opts
later and use it with readtimetable
to control how MATLAB imports stream events into MATLAB timetables.
analyzes the event structure array opts
= detectImportOptions(stream
,Event=e
)e
to determine the event schema. Use
this syntax only if the event stream that stream
connects to is
unavailable. You can either manually create this array, which can be complex, or use one
that was previously obtained from the stream, such as from a call to the readevents
function.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2022b
See Also
ImportOptions
| eventStreamImportOptions
| kafkaStream
| testStream
| setvartype
| detectExportOptions