Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Overview

  • A view is another place source where data can be read, like streams and datasets.
    •  Therefore, views are readable anywhere a stream or dataset is readable (MapReduce/Spark program, flows, ETL) 
  • A view is a read-only view of a stream or dataset, with a specific read format (schema + format (csv, avro))
  • If explore is enabled, then a Hive table will be created for each view

...

GET namespacesviews
Path
Request
Response
Notes
PUT /v3/namespaces/<namespace>/streams/<stream>/views/<view>
{
  "stream""stream1",
ViewSpecification
{
  "format": <same as before>
}
 
created new stream view -> 201 Created
modified existing stream view -> 200 OK 
Creates or modifies a view.
GET /v3/namespaces/<namespace>/streams/<stream>/views/<view> {

ViewDetail (ViewSpecification with an "id"

:"someview""stream""stream1

field)

{"id":"view1""format": ..}

Get details of an individual view.
DELETE /v3/namespace/<namespace>/  Lists all views.DELETE /v3/namespace/<namespace>streams/<stream>/view/<view>  Deletes a view.
GET /v3/namespaces/<namespace>/stream/<stream>/views 
[
  {"id":"someview""stream""stream1""format": ..},
  {"id":"otherview""stream""stream2""format": ..}
]
Lists all views associated with a stream.

...