inMemoryStream
Create connection to event stream hosted by MATLAB without schema processing applied
Since R2022b
This object requires Streaming Data Framework for MATLAB® Production Server™.
Description
The inMemoryStream
function creates an
InMemoryStream
object, which you can use to test reading from and writing
to event streams hosted by MATLAB. Unlike the TestStream
object,
InMemoryStream
objects do not apply schema processing when reading and
writing timetable data. The data in an inMemoryStream
object disappears
when you exit MATLAB.
Creation
Syntax
Description
Row-Based Event Window
stream = inMemoryStream
creates a default
InMemoryStream
object connected to an event stream hosted by
MATLAB that does not apply schema processing. The object reads 50 stream event
rows at a time.
stream = inMemoryStream(Rows=
creates an numevents
)InMemoryStream
object that reads
numevents
stream event rows at a time.
Duration-Based Event Window
stream = inMemoryStream(Duration=
creates an timespan
)InMemoryStream
object that reads stream events occurring
during the specified timestamp span, timespan
.
Additional Options
stream = inMemoryStream(___,
sets event stream properties
using one or more name-value arguments and any of the previous syntaxes.Name=Value
)
Input Arguments
Properties
Object Functions
readtimetable | Read timetable from event stream |
writetimetable | Write timetable to event stream |
seek | Set read position in event stream |
preview | Preview subset of events from event stream |
identifyingName | Event stream name |
detectImportOptions | Create import options based on event stream content |
detectExportOptions | Create export options based on event stream content |
Examples
Version History
Introduced in R2022b