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>,swim.util.PairBuilder<swim.structure.Value,swim.structure.Value,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)voiddecohere()protected voiddidDecohere()voiddidDecohereInlet(swim.streamlet.Inlet<? extends I> inlet)voiddidDecohereOutlet(swim.streamlet.Outlet<? super O> outlet)protected voiddidRecohere(int version)voiddidRecohereInlet(swim.streamlet.Inlet<? extends I> inlet, int version)voiddidRecohereOutlet(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()booleanisEmpty()protected voidonDecohere()protected voidonDecohereOutlets()protected voidonRecohere(int version)protected voidonRecohereInlets(int version)protected voidonRecohereOutlets(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)voidrecohere(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 voidwillDecohere()voidwillDecohereInlet(swim.streamlet.Inlet<? extends I> inlet)voidwillDecohereOutlet(swim.streamlet.Outlet<? super O> outlet)protected voidwillRecohere(int version)voidwillRecohereInlet(swim.streamlet.Inlet<? extends I> inlet, int version)voidwillRecohereOutlet(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, add, addAll, addAll, alias, appended, appended, asMutable, 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, isDefinite, 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()
-
decohere
public void decohere()
-
recohere
public void recohere(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()
-
willDecohereInlet
public void willDecohereInlet(swim.streamlet.Inlet<? extends I> inlet)
-
didDecohereInlet
public void didDecohereInlet(swim.streamlet.Inlet<? extends I> inlet)
-
willRecohereInlet
public void willRecohereInlet(swim.streamlet.Inlet<? extends I> inlet, int version)
-
didRecohereInlet
public void didRecohereInlet(swim.streamlet.Inlet<? extends I> inlet, int version)
-
willDecohereOutlet
public void willDecohereOutlet(swim.streamlet.Outlet<? super O> outlet)
-
didDecohereOutlet
public void didDecohereOutlet(swim.streamlet.Outlet<? super O> outlet)
-
willRecohereOutlet
public void willRecohereOutlet(swim.streamlet.Outlet<? super O> outlet, int version)
-
didRecohereOutlet
public void didRecohereOutlet(swim.streamlet.Outlet<? super O> outlet, int version)
-
willDecohere
protected void willDecohere()
-
onDecohere
protected void onDecohere()
-
onDecohereOutlets
protected void onDecohereOutlets()
-
didDecohere
protected void didDecohere()
-
willRecohere
protected void willRecohere(int version)
-
onRecohereInlets
protected void onRecohereInlets(int version)
-
onRecohere
protected void onRecohere(int version)
-
onRecohereOutlets
protected void onRecohereOutlets(int version)
-
didRecohere
protected void didRecohere(int version)
-
compileInlets
public static <I extends swim.structure.Value,O extends swim.structure.Value> void compileInlets(Class<?> streamletClass, RecordStreamlet<I,O> streamlet)
-
-