The MapR Streams Java API Library

Use the MapR Streams Admin Java API library as an alternative to maprcli commands and the REST APIs for performing adminstrative tasks on streams and topics. You can also use this library for analysis of the contents of streams.

This API library consists of the following interfaces, classes, and packages:
com.mapr.streams.Admin
Provides methods for performing administrative tasks on streams and topics, as well as for getting StreamDescriptor objects.
com.mapr.streams.StreamDescriptor
Provides methods for setting values for the attributes of streams. Pass a StreamDescriptor into the methods for creating a stream and editing an existing stream. Get a StreamDescriptor to find out the values of the attributes for an existing stream.
com.mapr.streams.Streams
Provides the entry point to accessing MapR streams for analytics purposes.
org.apache.kafka
Provides the MapR-modified Kafka packages.

Using these interfaces, you can write Java applications that perform these tasks: