| Modifier and Type | Class and Description |
|---|---|
class |
LookAheadStream<E>
Partial
Stream implementation based on look-ahead operations over an underlying stream. |
| Constructor and Description |
|---|
StreamConsumer(Stream<T> stream,
Callback<T> callback)
|
| Modifier and Type | Class and Description |
|---|---|
class |
IteratorStream<E>
|
class |
ResultsetStream<E extends gr.uoa.di.madgik.grs.record.Record>
A
Stream adapter for gRS2 resultsets. |
| Modifier and Type | Class and Description |
|---|---|
class |
FoldedStream<E>
|
class |
GuardedStream<E>
A
Stream that guards failures with a FaultHandler |
class |
MonitoredStream<E>
A
Stream that notifies an StreamListener of key iteration events. |
class |
PipedStream<E1,E2>
|
class |
UnfoldedStream<E1,E2>
|
| Constructor and Description |
|---|
FoldedStream(Stream<E> stream,
int foldSize)
Creates an instance with a
Stream and a fold size. |
GuardedStream(Stream<E> stream,
FaultHandler handler)
Creates an instance with a
Stream and a FaultHandler |
MonitoredStream(Stream<E> stream,
StreamListener listener)
Creates an instance with a
Stream and a StreamListener. |
PipedStream(Stream<E1> stream,
Generator<E1,E2> generator)
|
UnfoldedStream(Stream<E1> stream,
Generator<E1,Stream<E2>> generator)
|
| Constructor and Description |
|---|
UnfoldedStream(Stream<E1> stream,
Generator<E1,Stream<E2>> generator)
|
| Modifier and Type | Method and Description |
|---|---|
static <E> Stream<E> |
Streams.convert(E... elements)
Converts one or more elements into a
Stream. |
static <E> Stream<E> |
Streams.convert(Iterable<E> iterable)
|
static <E> Stream<E> |
Streams.convert(Iterator<E> itarator)
|
static <E> Stream<E> |
Streams.convertWithFaults(Class<E> clazz,
List<? extends Object> elements)
Converts a mixture of exceptions and elements of a given type to a
Stream of a that type. |
static <E> Stream<E> |
Streams.convertWithFaults(Class<E> clazz,
Object... elements)
Converts a mixture of exceptions and elements of a given type to a
Stream of a that type. |
static <E> Stream<E> |
Streams.log(Stream<E> stream)
|
Stream<E> |
StreamClauseEnv.stream() |
static Stream<String> |
Streams.stringsIn(URI locator)
Returns a
Stream of strings extracted from a resultset of RsStringRecordFactory.STRING_RECORDs. |
static Stream<String> |
Streams.stringsIn(URI locator,
int timeout,
TimeUnit timeUnit)
Returns a
Stream of strings extracted from a resultset of RsStringRecordFactory.STRING_RECORDs. |
| Modifier and Type | Method and Description |
|---|---|
static <E> ConsumeWithClause<E> |
Streams.consume(Stream<E> stream)
Starts a sentence to consume a
Stream |
static <E> InClause<E> |
Streams.fold(Stream<E> stream)
|
static <E> GuardWithClause<E> |
Streams.guard(Stream<E> stream)
|
static <E> Stream<E> |
Streams.log(Stream<E> stream)
|
static <E> MonitorWithClause<E> |
Streams.monitor(Stream<E> stream)
|
static <E> NoOpGenerator<E> |
Streams.no_op(Stream<E> stream)
Returns a
NoOpGenerator. |
static <E> PipeThroughClause<E> |
Streams.pipe(Stream<E> stream)
|
static <E> PublishRsUsingClause<E> |
Streams.publish(Stream<E> stream)
Starts a sentence to publish a
Stream as a resultset. |
static PublishRsWithClause<String> |
Streams.publishStringsIn(Stream<String> stream)
Starts a sentence to publish a
Stream as a resultset. |
static <E> UnfoldThroughClause<E> |
Streams.unfold(Stream<E> stream)
|
| Constructor and Description |
|---|
StreamClauseEnv(Stream<E> stream) |
| Constructor and Description |
|---|
ConsumeWithClause(Stream<E> stream)
Creates an instance from an input
Stream |
| Constructor and Description |
|---|
InClause(Stream<E> stream)
Creates an instance with an input
Stream. |
| Modifier and Type | Method and Description |
|---|---|
Stream<String> |
RsStringWithClause.withDefaults()
Returns a
Stream with a ResultsetStream.default_timeout in a
ResultsetStream.default_timeout_unit on the input resultset. |
Stream<R> |
RsWithClause.withDefaults()
Returns a
Stream with a ResultsetStream.default_timeout in a
ResultsetStream.default_timeout_unit on the input resultset. |
Stream<String> |
RsStringWithClause.withTimeout(int timeout,
TimeUnit unit)
Returns a
Stream with a given read timeout on the input resultset |
Stream<R> |
RsWithClause.withTimeout(int timeout,
TimeUnit unit)
Returns a
Stream with a given read timeout on the input resultset. |
| Constructor and Description |
|---|
GuardWithClause(Stream<E> stream)
Creates an instance with an input
Stream. |
| Constructor and Description |
|---|
MonitorWithClause(Stream<E> stream)
Creates an instance from an input
Stream |
| Constructor and Description |
|---|
PipeThroughClause(Stream<E> stream)
Creates an instance from an input
Stream |
| Constructor and Description |
|---|
PublishRsEnv(Stream<E> stream)
Creates an instance with a
Stream |
PublishRsEnv(Stream<E> stream,
RecordFactory<E> factory)
Creates an instance with a
Stream and a RecordFactory |
PublishRsUsingClause(Stream<E> stream)
Creates an instance with an input
Stream. |
| Modifier and Type | Method and Description |
|---|---|
<E2> UnfoldedStream<E,E2> |
UnfoldThroughClause.through(Generator<E,Stream<E2>> generator)
|
| Constructor and Description |
|---|
UnfoldThroughClause(Stream<E> stream)
Creates an instance from an input
Stream |
| Constructor and Description |
|---|
RsPublisher(Stream<E> stream,
Generator<E,String> serialiser)
Creates an instance for a given
Stream and with a given element serialiser. |
RsPublisher(Stream<E> stream,
RecordFactory<E> factory)
Creates an instance for a given
Stream and with a given RecordFactory. |
| Modifier and Type | Method and Description |
|---|---|
Stream<?> |
StreamProvider.get()
Generates a
Stream |
| Modifier and Type | Method and Description |
|---|---|
static List<Object> |
Utils.elementsOf(Stream<?> stream)
|
Copyright © 2019. All Rights Reserved.