Module swim.dataflow
Package swim.dataflow
Class AbstractRecordStreamlet<I extends swim.structure.Value,O extends swim.structure.Value>
- java.lang.Object
-
- swim.structure.Item
-
- swim.structure.Value
-
- swim.structure.Record
-
- swim.dataflow.RecordStreamlet<I,O>
-
- swim.dataflow.AbstractRecordStreamlet<I,O>
-
- All Implemented Interfaces:
Comparable<swim.structure.Item>,Iterable<swim.structure.Item>,Collection<swim.structure.Item>,List<swim.structure.Item>,swim.codec.Debug,swim.codec.Display,swim.streamlet.GenericStreamlet<I,O>,swim.streamlet.Streamlet<I,O>,swim.streamlet.StreamletScope<O>,swim.util.Builder<swim.structure.Item,swim.structure.Record>
public abstract class AbstractRecordStreamlet<I extends swim.structure.Value,O extends swim.structure.Value> extends RecordStreamlet<I,O> implements swim.streamlet.GenericStreamlet<I,O>
-
-
Constructor Summary
Constructors Constructor Description AbstractRecordStreamlet()AbstractRecordStreamlet(swim.streamlet.StreamletScope<? extends O> scope)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, swim.structure.Item item)booleanadd(swim.structure.Item item)voidbindInput(String key, swim.streamlet.Outlet<? extends I> input)<T> TcastInput(String key, swim.structure.Form<T> form)<T> TcastInput(String key, swim.structure.Form<T> form, T orElse)<T> TcastInput(swim.streamlet.Inlet<? extends I> inlet, swim.structure.Form<T> form)<T> TcastInput(swim.streamlet.Inlet<? extends I> inlet, swim.structure.Form<T> form, T orElse)voidclear()<T> TcoerceInput(String key, swim.structure.Form<T> form)<T> TcoerceInput(String key, swim.structure.Form<T> form, T orElse)<T> TcoerceInput(swim.streamlet.Inlet<? extends I> inlet, swim.structure.Form<T> form)<T> TcoerceInput(swim.streamlet.Inlet<? extends I> inlet, swim.structure.Form<T> form, T orElse)static <I extends swim.structure.Value,O extends swim.structure.Value>
voidcompileInlets(Class<?> streamletClass, RecordStreamlet<I,O> streamlet)booleancontainsKey(String key)booleancontainsKey(swim.structure.Value key)protected voiddidInvalidate()voiddidInvalidateInlet(swim.streamlet.Inlet<? extends I> inlet)voiddidInvalidateOutlet(swim.streamlet.Outlet<? super O> outlet)protected voiddidReconcile(int version)voiddidReconcileInlet(swim.streamlet.Inlet<? extends I> inlet, int version)voiddidReconcileOutlet(swim.streamlet.Outlet<? super O> outlet, int version)voiddisconnectInputs()voiddisconnectOutputs()swim.structure.Itemget(int index)swim.structure.Valueget(String key)swim.structure.Valueget(swim.structure.Value key)swim.structure.ValuegetAttr(String key)swim.structure.ValuegetAttr(swim.structure.Text key)swim.structure.FieldgetField(String key)swim.structure.FieldgetField(swim.structure.Value key)<I2 extends I>
I2getInput(String key)<I2 extends I>
I2getInput(String key, I2 orElse)<I2 extends I>
I2getInput(swim.streamlet.Inlet<I2> inlet)<I2 extends I>
I2getInput(swim.streamlet.Inlet<I2> inlet, I2 orElse)swim.structure.ItemgetItem(int index)OgetOutput(String key)OgetOutput(swim.streamlet.Outlet<? super O> outlet)swim.structure.ValuegetSlot(String key)swim.structure.ValuegetSlot(swim.structure.Value key)protected <I2 extends I>
swim.streamlet.Inlet<I2>inlet()swim.streamlet.Inlet<I>inlet(String key)protected <I2 extends I,O2>
swim.streamlet.Inoutlet<I2,O2>inoutlet()voidinvalidate()booleanisEmpty()protected voidonInvalidate()protected voidonInvalidateOutlets()protected voidonReconcile(int version)protected voidonReconcileInlets(int version)protected voidonReconcileOutlets(int version)protected <O2 extends swim.structure.Value>
swim.streamlet.Outlet<O2>outlet()swim.streamlet.Outlet<O>outlet(String key)swim.structure.Valueput(String key, swim.structure.Value newValue)swim.structure.Valueput(swim.structure.Value key, swim.structure.Value newValue)swim.structure.ValueputAttr(String key, swim.structure.Value newValue)swim.structure.ValueputAttr(swim.structure.Text key, swim.structure.Value newValue)swim.structure.ValueputSlot(String key, swim.structure.Value newValue)swim.structure.ValueputSlot(swim.structure.Value key, swim.structure.Value newValue)voidreconcile(int version)swim.structure.Itemremove(int index)booleanremoveKey(String key)booleanremoveKey(swim.structure.Value key)swim.structure.ItemsetItem(int index, swim.structure.Item item)voidsetStreamletContext(swim.streamlet.StreamletContext context)voidsetStreamletScope(swim.streamlet.StreamletScope<? extends O> scope)intsize()swim.streamlet.StreamletContextstreamletContext()swim.streamlet.StreamletScope<? extends O>streamletScope()voidunbindInput(String key)protected voidwillInvalidate()voidwillInvalidateInlet(swim.streamlet.Inlet<? extends I> inlet)voidwillInvalidateOutlet(swim.streamlet.Outlet<? super O> outlet)protected voidwillReconcile(int version)voidwillReconcileInlet(swim.streamlet.Inlet<? extends I> inlet, int version)voidwillReconcileOutlet(swim.streamlet.Outlet<? super O> outlet, int version)-
Methods inherited from class swim.dataflow.RecordStreamlet
compile, compileInlet, isConstant
-
Methods inherited from class swim.structure.Record
add, add, add, add, add, add, add, add, add, add, add, add, addAll, addAll, alias, appended, appended, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, bind, body, branch, commit, compareTo, compareTo, concat, contains, contains, containsAll, containsValue, create, create, debug, empty, entrySet, equals, evaluate, fieldCount, fieldIterator, fieldSet, flattened, hashCode, head, header, headers, indexOf, isAliased, isArray, isMutable, isObject, item, item, item, item, item, item, item, iterator, keyIterator, keySet, lastIndexOf, length, listIterator, listIterator, of, of, of, prepended, prepended, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, remove, removeAll, removed, removed, retainAll, set, setItem, setItem, setItem, setItem, setItem, setItem, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, stringValue, stringValue, subList, substitute, tag, tail, target, toArray, toArray, typeOrder, unflattened, updated, updated, updatedAttr, updatedAttr, updatedSlot, updatedSlot, valueCount, valueIterator, values
-
Methods inherited from class swim.structure.Value
absent, and, and, bitwiseAnd, bitwiseAnd, bitwiseNot, bitwiseOr, bitwiseOr, bitwiseXor, bitwiseXor, booleanValue, booleanValue, builder, byteValue, byteValue, charValue, charValue, conditional, conditional, divide, divide, doubleValue, doubleValue, eq, eq, extant, floatValue, floatValue, fromObject, ge, ge, gt, gt, integerValue, integerValue, intValue, intValue, inverse, isDefined, isDistinct, key, keyEquals, lambda, le, le, longValue, longValue, lt, lt, minus, minus, modulo, modulo, ne, ne, negative, not, numberValue, numberValue, or, or, plus, plus, positive, shortValue, shortValue, times, times, toValue
-
Methods inherited from class swim.structure.Item
appended, appended, appended, appended, appended, appended, cast, cast, coerce, coerce, display, evaluate, filter, filter, globalScope, invoke, max, min, precedence, prepended, prepended, prepended, prepended, prepended, prepended, substitute, toString, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
-
-
-
Field Detail
-
scope
protected swim.streamlet.StreamletScope<? extends O extends swim.structure.Value> scope
-
context
protected swim.streamlet.StreamletContext context
-
version
protected int version
-
-
Constructor Detail
-
AbstractRecordStreamlet
public AbstractRecordStreamlet(swim.streamlet.StreamletScope<? extends O> scope)
-
AbstractRecordStreamlet
public AbstractRecordStreamlet()
-
-
Method Detail
-
streamletScope
public swim.streamlet.StreamletScope<? extends O> streamletScope()
-
setStreamletScope
public void setStreamletScope(swim.streamlet.StreamletScope<? extends O> scope)
-
streamletContext
public swim.streamlet.StreamletContext streamletContext()
-
setStreamletContext
public void setStreamletContext(swim.streamlet.StreamletContext context)
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
containsKey
public boolean containsKey(swim.structure.Value key)
- Overrides:
containsKeyin classswim.structure.Record
-
containsKey
public boolean containsKey(String key)
- Overrides:
containsKeyin classswim.structure.Record
-
get
public swim.structure.Value get(swim.structure.Value key)
- Overrides:
getin classswim.structure.Record
-
get
public swim.structure.Value get(String key)
- Overrides:
getin classswim.structure.Record
-
getAttr
public swim.structure.Value getAttr(swim.structure.Text key)
- Overrides:
getAttrin classswim.structure.Record
-
getAttr
public swim.structure.Value getAttr(String key)
- Overrides:
getAttrin classswim.structure.Record
-
getSlot
public swim.structure.Value getSlot(swim.structure.Value key)
- Overrides:
getSlotin classswim.structure.Record
-
getSlot
public swim.structure.Value getSlot(String key)
- Overrides:
getSlotin classswim.structure.Record
-
getField
public swim.structure.Field getField(swim.structure.Value key)
- Overrides:
getFieldin classswim.structure.Record
-
getField
public swim.structure.Field getField(String key)
- Overrides:
getFieldin classswim.structure.Record
-
get
public swim.structure.Item get(int index)
-
getItem
public swim.structure.Item getItem(int index)
- Specified by:
getItemin classswim.structure.Record
-
put
public swim.structure.Value put(swim.structure.Value key, swim.structure.Value newValue)- Overrides:
putin classswim.structure.Record
-
put
public swim.structure.Value put(String key, swim.structure.Value newValue)
- Overrides:
putin classswim.structure.Record
-
putAttr
public swim.structure.Value putAttr(swim.structure.Text key, swim.structure.Value newValue)- Overrides:
putAttrin classswim.structure.Record
-
putAttr
public swim.structure.Value putAttr(String key, swim.structure.Value newValue)
- Overrides:
putAttrin classswim.structure.Record
-
putSlot
public swim.structure.Value putSlot(swim.structure.Value key, swim.structure.Value newValue)- Overrides:
putSlotin classswim.structure.Record
-
putSlot
public swim.structure.Value putSlot(String key, swim.structure.Value newValue)
- Overrides:
putSlotin classswim.structure.Record
-
setItem
public swim.structure.Item setItem(int index, swim.structure.Item item)- Specified by:
setItemin classswim.structure.Record
-
add
public boolean add(swim.structure.Item item)
- Specified by:
addin interfaceswim.util.Builder<I extends swim.structure.Value,O extends swim.structure.Value>- Specified by:
addin interfaceCollection<I extends swim.structure.Value>- Specified by:
addin interfaceList<I extends swim.structure.Value>- Specified by:
addin classswim.structure.Record
-
add
public void add(int index, swim.structure.Item item)
-
remove
public swim.structure.Item remove(int index)
-
removeKey
public boolean removeKey(swim.structure.Value key)
- Overrides:
removeKeyin classswim.structure.Record
-
removeKey
public boolean removeKey(String key)
- Overrides:
removeKeyin classswim.structure.Record
-
clear
public void clear()
-
inlet
protected <I2 extends I> swim.streamlet.Inlet<I2> inlet()
-
unbindInput
public void unbindInput(String key)
-
outlet
protected <O2 extends swim.structure.Value> swim.streamlet.Outlet<O2> outlet()
-
inoutlet
protected <I2 extends I,O2> swim.streamlet.Inoutlet<I2,O2> inoutlet()
-
invalidate
public void invalidate()
-
reconcile
public void reconcile(int version)
-
getInput
public <I2 extends I> I2 getInput(swim.streamlet.Inlet<I2> inlet)
-
getInput
public <I2 extends I> I2 getInput(swim.streamlet.Inlet<I2> inlet, I2 orElse)
-
castInput
public <T> T castInput(swim.streamlet.Inlet<? extends I> inlet, swim.structure.Form<T> form)
-
castInput
public <T> T castInput(String key, swim.structure.Form<T> form)
-
castInput
public <T> T castInput(swim.streamlet.Inlet<? extends I> inlet, swim.structure.Form<T> form, T orElse)
-
castInput
public <T> T castInput(String key, swim.structure.Form<T> form, T orElse)
-
coerceInput
public <T> T coerceInput(swim.streamlet.Inlet<? extends I> inlet, swim.structure.Form<T> form)
-
coerceInput
public <T> T coerceInput(String key, swim.structure.Form<T> form)
-
coerceInput
public <T> T coerceInput(swim.streamlet.Inlet<? extends I> inlet, swim.structure.Form<T> form, T orElse)
-
coerceInput
public <T> T coerceInput(String key, swim.structure.Form<T> form, T orElse)
-
disconnectInputs
public void disconnectInputs()
-
disconnectOutputs
public void disconnectOutputs()
-
willInvalidateInlet
public void willInvalidateInlet(swim.streamlet.Inlet<? extends I> inlet)
-
didInvalidateInlet
public void didInvalidateInlet(swim.streamlet.Inlet<? extends I> inlet)
-
willReconcileInlet
public void willReconcileInlet(swim.streamlet.Inlet<? extends I> inlet, int version)
-
didReconcileInlet
public void didReconcileInlet(swim.streamlet.Inlet<? extends I> inlet, int version)
-
willInvalidateOutlet
public void willInvalidateOutlet(swim.streamlet.Outlet<? super O> outlet)
-
didInvalidateOutlet
public void didInvalidateOutlet(swim.streamlet.Outlet<? super O> outlet)
-
willReconcileOutlet
public void willReconcileOutlet(swim.streamlet.Outlet<? super O> outlet, int version)
-
didReconcileOutlet
public void didReconcileOutlet(swim.streamlet.Outlet<? super O> outlet, int version)
-
willInvalidate
protected void willInvalidate()
-
onInvalidate
protected void onInvalidate()
-
onInvalidateOutlets
protected void onInvalidateOutlets()
-
didInvalidate
protected void didInvalidate()
-
willReconcile
protected void willReconcile(int version)
-
onReconcileInlets
protected void onReconcileInlets(int version)
-
onReconcile
protected void onReconcile(int version)
-
onReconcileOutlets
protected void onReconcileOutlets(int version)
-
didReconcile
protected void didReconcile(int version)
-
compileInlets
public static <I extends swim.structure.Value,O extends swim.structure.Value> void compileInlets(Class<?> streamletClass, RecordStreamlet<I,O> streamlet)
-
-