Package org.shapelogic.streams

Streams

See:
          Description

Interface Summary
FilterCalcStream1<E,Out> Does calculation on input and if it is different from null return Entry of input result.
FilterStream<E> FilterStream is the simplest filter Stream.
FilterTransformerStream<E,Out> FilterStream is the simplest filter Stream.
IndexedInputStream0<E> Universal calculation and logic unit.
IndexedInputStream1<In,E> Universal calculation and logic unit.
IndexedInputStream2<In0,In1,E> Universal calculation and logic unit.
InputsStream2<In0,In1,E> NumberedStream is a Sequential stream where each element has an intrinsic number.
InputStream1<In,E> Universal calculation and logic unit.
InputStreamList<In,E> InputStreamList is like InputStream1 but takes List of streams as input.
ListFilterStream<E>  
ListStream<E> Universal calculation and logic unit.
NumberedStream<E> NumberedStream is a Sequential Stream where each element has an intrinsic number.
Stream<E> Stream where is a sequential StreamCalc that generate a sequence of calculated elements.
StreamProperties Properties to be Stream the universal calculation and logic unit.

This is going to replace the current Calc, so this should probably just be renamed to Calc or LazyCalc.
Should I assume that null means absent of value?
That seems a little harsh.
 

Class Summary
AddListStream AddListStream takes a list of Integer streams and create the add of them.
AndListStream AndListStream takes a list of Boolean streams and create the and of them.
ArrayOutputListStream ArrayOutputListStream takes a list of NumberStreams and creates a ListStream of double[].
This could be made more general, but start simple.
BaseCommonNumberedStream<E> Implementation of ListStream.
BaseCommonStream<E> Implementation of ListStream.
BaseListCommonStream<E> Implementation of ListStream.
BaseListFilterStream<E> This is the abstract class to override to make a ListFilterStream.
BaseListFilterTransformerStream<E,Out> This is the abstract class to override to make a ListFilterStream.
BaseListIndexedStream1<In,E> Implementation of ListStream.
BaseListStream0<E> Implementation of ListStream.
BaseListStream1<In,E> Implementation of ListStream.
BaseListStream2<In0,In1,E> Implementation of ListStream.
BaseListStreamList<In,E> Implementation of ListStream.
BaseNumberedStream1<In,E> Implementation of ListStream.
BaseStream2<In0,In1,E> BaseDeclarativeStreamInputs2 a Stream with 2 inputs.
CalcNumberedStream1<In,E> Make a stream that is using a Calc1 class to do a calculation, based on a named input stream stored in a context.
Based on ListCalcStream1.
Uses lazy setup so input stream does not have to exist when stream is created.
There should be a way to say whether you have to calculate all the values sequentially to use this.
Close to NamedListCalcStream1, but with no caching.
IteratorStream<E> Stream based on Iterator that can be set.
ListCalcIndexStream1<In,E> Make a stream that is using a Transformer class to do a calculation.
ListCalcStream1<In,E> Make a stream that is using a Calc1 class to do a calculation.
ListFilterCalcStream1<E,Out> Does calculation on input and if it is different from null return Entry of input result.
NamedListCalcStream1<In,E> Make a stream that is using a Calc1 class to do a calculation, based on a named input stream stored in a context.
Uses lazy setup so input stream does not have to exist when stream is created.
There should be a way to say whether you have to calculate all the values sequentially to use this.
NamedListStream<E> Deprecated.
NamedNumberedStream<E> Deprecated.
NamedNumberedStreamLazySetup<E> Deprecated.
PredicateListFilterStream<E> For ListFilterStream that just takes an input predicate.
SingleListStream<T> Use this to treat a calculation as a stream.
StreamFactory StreamFactory is a factory for Streams.
StreamUtil Class with utility methods for Stream.
WrappedListStream<E> Wraps a stream around a list.
XOrListStream AndListStream takes a list of Boolean streams and create the and of them.
 

Package org.shapelogic.streams Description

Streams

New library for functional programming style streams / lazy lists.

Dependency

Declarative programming

Declarative programming in ShapeLogic is build on the following:

Streams

Definitions

last the last element of a stream, set to LAST_UNKNOWN, before it is know. This value can get lower as calculation progress.

maxLast manually set max value for last. The real last value might be lower.

nullLegalValue if this is false then the stream will end when the first null value is encountered.

How can an calculation of stream end?



Copyright © 2009. All Rights Reserved.