Uses of Interface
com.hazelcast.jet.pipeline.StreamSource
Package | Description |
---|---|
com.hazelcast.jet.kafka |
Apache Kafka reader/writer support for Hazelcast Jet.
|
com.hazelcast.jet.pipeline |
The Pipeline API is Jet's high-level API to build and execute
distributed computation jobs.
|
com.hazelcast.jet.pipeline.test |
This package contains various mock sources to help with pipeline testing
and development.
|
-
Uses of StreamSource in com.hazelcast.jet.kafka
Methods in com.hazelcast.jet.kafka that return StreamSource Modifier and Type Method Description static <K, V, T> StreamSource<T>
KafkaSources. kafka(Properties properties, FunctionEx<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>,T> projectionFn, String... topics)
Returns a source that consumes one or more Apache Kafka topics and emits items from them asMap.Entry
instances.static <K, V> StreamSource<Map.Entry<K,V>>
KafkaSources. kafka(Properties properties, String... topics)
Convenience forKafkaSources.kafka(Properties, FunctionEx, String...)
wrapping the output inMap.Entry
. -
Uses of StreamSource in com.hazelcast.jet.pipeline
Methods in com.hazelcast.jet.pipeline that return StreamSource Modifier and Type Method Description StreamSource<javax.jms.Message>
JmsSourceBuilder. build()
Convenience forJmsSourceBuilder.build(FunctionEx)
.<T> StreamSource<T>
JmsSourceBuilder. build(FunctionEx<? super javax.jms.Message,? extends T> projectionFn)
Creates and returns the JMSStreamSource
with the supplied components and the projection functionprojectionFn
.StreamSource<T>
SourceBuilder.Stream. build()
Builds and returns the unbounded stream source.StreamSource<T>
SourceBuilder.TimestampedStream. build()
Builds and returns the timestamped stream source.StreamSource<String>
FileSourceBuilder. buildWatcher()
Convenience forFileSourceBuilder.buildWatcher(BiFunctionEx)
.<T> StreamSource<T>
FileSourceBuilder. buildWatcher(BiFunctionEx<String,String,? extends T> mapOutputFn)
Builds a source that emits a stream of lines of text coming from files in the watched directory (but not its subdirectories).static <K, V> StreamSource<Map.Entry<K,V>>
Sources. cacheJournal(String cacheName, JournalInitialPosition initialPos)
Convenience forSources.cacheJournal(String, JournalInitialPosition, FunctionEx, PredicateEx)
which will pass onlyCREATED
andUPDATED
events and will project the event's key and new value into aMap.Entry
.static <T, K, V> StreamSource<T>
Sources. cacheJournal(String cacheName, JournalInitialPosition initialPos, FunctionEx<? super EventJournalCacheEvent<K,V>,? extends T> projectionFn, PredicateEx<? super EventJournalCacheEvent<K,V>> predicateFn)
Returns a source that will stream theEventJournalCacheEvent
events of a HazelcastICache
with the specified name.static StreamSource<String>
Sources. fileWatcher(String watchedDirectory)
A source to stream lines added to files in a directory.static StreamSource<javax.jms.Message>
Sources. jmsQueue(SupplierEx<? extends javax.jms.ConnectionFactory> factorySupplier, String name)
Deprecated.static StreamSource<javax.jms.Message>
Sources. jmsQueue(String name, SupplierEx<? extends javax.jms.ConnectionFactory> factorySupplier)
Shortcut equivalent to:static StreamSource<javax.jms.Message>
Sources. jmsTopic(SupplierEx<? extends javax.jms.ConnectionFactory> factorySupplier, String name)
Deprecated.static StreamSource<javax.jms.Message>
Sources. jmsTopic(String name, SupplierEx<? extends javax.jms.ConnectionFactory> factorySupplier)
Shortcut equivalent to:static <K, V> StreamSource<Map.Entry<K,V>>
Sources. mapJournal(IMap<? extends K,? extends V> map, JournalInitialPosition initialPos)
Convenience forSources.mapJournal(IMap, JournalInitialPosition, FunctionEx, PredicateEx)
which will pass onlyADDED
andUPDATED
events and will project the event's key and new value into aMap.Entry
.static <T, K, V> StreamSource<T>
Sources. mapJournal(IMap<? extends K,? extends V> map, JournalInitialPosition initialPos, FunctionEx<? super EventJournalMapEvent<K,V>,? extends T> projectionFn, PredicateEx<? super EventJournalMapEvent<K,V>> predicateFn)
Returns a source that will streamEventJournalMapEvent
s of the given HazelcastIMap
.static <K, V> StreamSource<Map.Entry<K,V>>
Sources. mapJournal(String mapName, JournalInitialPosition initialPos)
Convenience forSources.mapJournal(String, JournalInitialPosition, FunctionEx, PredicateEx)
which will pass onlyADDED
andUPDATED
events and will project the event's key and new value into aMap.Entry
.static <T, K, V> StreamSource<T>
Sources. mapJournal(String mapName, JournalInitialPosition initialPos, FunctionEx<? super EventJournalMapEvent<K,V>,? extends T> projectionFn, PredicateEx<? super EventJournalMapEvent<K,V>> predicateFn)
Returns a source that will streamEventJournalMapEvent
s of the HazelcastIMap
with the specified name.static <K, V> StreamSource<Map.Entry<K,V>>
Sources. remoteCacheJournal(String cacheName, ClientConfig clientConfig, JournalInitialPosition initialPos)
Convenience forSources.remoteCacheJournal(String, ClientConfig, JournalInitialPosition, FunctionEx, PredicateEx)
which will pass onlyCREATED
andUPDATED
events and will project the event's key and new value into aMap.Entry
.static <T, K, V> StreamSource<T>
Sources. remoteCacheJournal(String cacheName, ClientConfig clientConfig, JournalInitialPosition initialPos, FunctionEx<? super EventJournalCacheEvent<K,V>,? extends T> projectionFn, PredicateEx<? super EventJournalCacheEvent<K,V>> predicateFn)
Returns a source that will stream theEventJournalCacheEvent
events of the HazelcastICache
with the specified name from a remote cluster.static <K, V> StreamSource<Map.Entry<K,V>>
Sources. remoteMapJournal(String mapName, ClientConfig clientConfig, JournalInitialPosition initialPos)
Convenience forSources.remoteMapJournal(String, ClientConfig, JournalInitialPosition, FunctionEx, PredicateEx)
which will pass onlyADDED
andUPDATED
events and will project the event's key and new value into aMap.Entry
.static <T, K, V> StreamSource<T>
Sources. remoteMapJournal(String mapName, ClientConfig clientConfig, JournalInitialPosition initialPos, FunctionEx<? super EventJournalMapEvent<K,V>,? extends T> projectionFn, PredicateEx<? super EventJournalMapEvent<K,V>> predicateFn)
Returns a source that will stream theEventJournalMapEvent
events of the HazelcastIMap
with the specified name from a remote cluster.StreamSource<T>
StreamSource. setPartitionIdleTimeout(long timeoutMillis)
Sets a timeout after which idle partitions will be excluded from watermark coalescing.static StreamSource<String>
Sources. socket(String host, int port)
Convenience forsocket(host, port, charset)
with UTF-8 as the charset.static StreamSource<String>
Sources. socket(String host, int port, Charset charset)
Returns a source which connects to the specified socket and emits lines of text received from it.static <T> StreamSource<T>
Sources. streamFromProcessor(String sourceName, ProcessorMetaSupplier metaSupplier)
Returns an unbounded (event stream) source constructed directly from the given Core API processor meta-supplier.static <T> StreamSource<T>
Sources. streamFromProcessorWithWatermarks(String sourceName, boolean supportsNativeTimestamps, Function<EventTimePolicy<? super T>,ProcessorMetaSupplier> metaSupplierFn)
Returns an unbounded (event stream) source that will use the supplied function to create processor meta-suppliers as required by the Core API.Methods in com.hazelcast.jet.pipeline with parameters of type StreamSource Modifier and Type Method Description <T> StreamSourceStage<T>
Pipeline. readFrom(StreamSource<? extends T> source)
Returns a pipeline stage that represents an unbounded data source (i.e., an event stream). -
Uses of StreamSource in com.hazelcast.jet.pipeline.test
Methods in com.hazelcast.jet.pipeline.test that return StreamSource Modifier and Type Method Description static StreamSource<SimpleEvent>
TestSources. itemStream(int itemsPerSecond)
Returns a streaming source which generates events of typeSimpleEvent
at the specified rate infinitely.static <T> StreamSource<T>
TestSources. itemStream(int itemsPerSecond, GeneratorFunction<? extends T> generatorFn)
Returns a streaming source which generates events created by thegeneratorFn
at the specified rate infinitely.