Package | Description |
---|---|
com.hazelcast.jet.core.processor |
Apache Kafka reader/writer support for Hazelcast Jet.
|
com.hazelcast.jet.function |
Serializable variants of functional interfaces from
java.util.function . |
com.hazelcast.jet.stream |
java.util.stream implementation using Hazelcast Jet
|
Modifier and Type | Method and Description |
---|---|
static <B,T> ProcessorSupplier |
SinkProcessors.writeBufferedP(DistributedIntFunction<B> newBufferFn,
DistributedBiConsumer<B,T> addToBufferFn,
DistributedConsumer<B> flushBufferFn)
Returns a supplier of processors for a vertex that drains all the items
from its inbox to an intermediate buffer and then flushes the buffer.
|
static <B,T> ProcessorSupplier |
SinkProcessors.writeBufferedP(DistributedIntFunction<B> newBufferFn,
DistributedBiConsumer<B,T> addToBufferFn,
DistributedConsumer<B> flushBufferFn,
DistributedConsumer<B> disposeBufferFn)
Returns a supplier of processors for a vertex that drains all the items
from the inbox to an intermediate buffer and then flushes the buffer.
|
static <B,T> ProcessorSupplier |
SinkProcessors.writeBufferedP(DistributedIntFunction<B> newBufferFn,
DistributedBiConsumer<B,T> addToBufferFn,
DistributedConsumer<B> flushBufferFn,
DistributedConsumer<B> disposeBufferFn)
Returns a supplier of processors for a vertex that drains all the items
from the inbox to an intermediate buffer and then flushes the buffer.
|
Modifier and Type | Method and Description |
---|---|
default DistributedConsumer<T> |
DistributedConsumer.andThen(DistributedConsumer<? super T> after)
Returns a composed
Consumer that performs, in sequence, this
operation followed by the after operation. |
static <T> DistributedConsumer<T> |
DistributedFunctions.noopConsumer()
Returns a consumer that does nothing with the argument.
|
Modifier and Type | Method and Description |
---|---|
default DistributedConsumer<T> |
DistributedConsumer.andThen(DistributedConsumer<? super T> after)
Returns a composed
Consumer that performs, in sequence, this
operation followed by the after operation. |
void |
DistributedOptional.ifPresent(DistributedConsumer<? super T> consumer)
If a value is present, invoke the specified consumer with the value,
otherwise do nothing.
|
Modifier and Type | Method and Description |
---|---|
default DistributedStream<T> |
DistributedStream.peek(DistributedConsumer<? super T> action)
Returns a stream consisting of the elements of this stream, additionally
performing the provided action on each element as elements are consumed
from the resulting stream.
|
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.