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>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, swim.structure.Item item) booleanadd(swim.structure.Item item) void<T> T<T> T<T> T<T> Tvoidclear()<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 voidvoiddidDecohereInlet(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) voidvoidswim.structure.Itemget(int index) swim.structure.Valueswim.structure.Valueget(swim.structure.Value key) swim.structure.Valueswim.structure.ValuegetAttr(swim.structure.Text key) swim.structure.Fieldswim.structure.FieldgetField(swim.structure.Value key) <I2 extends I>
I2<I2 extends I>
I2<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) swim.structure.Valueswim.structure.ValuegetSlot(swim.structure.Value key) protected <I2 extends I>
swim.streamlet.Inlet<I2>inlet()swim.streamlet.Inlet<I>protected <I2 extends I,O2>
swim.streamlet.Inoutlet<I2,O2> inoutlet()booleanisEmpty()protected voidprotected voidprotected 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>swim.structure.Valueswim.structure.Valueput(swim.structure.Value key, swim.structure.Value newValue) swim.structure.Valueswim.structure.ValueputAttr(swim.structure.Text key, swim.structure.Value newValue) swim.structure.Valueswim.structure.ValueputSlot(swim.structure.Value key, swim.structure.Value newValue) voidrecohere(int version) swim.structure.Itemremove(int index) booleanbooleanremoveKey(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.StreamletContextswim.streamlet.StreamletScope<? extends O>voidunbindInput(String key) protected voidvoidwillDecohereInlet(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, isConstantMethods 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, valuesMethods 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, toValueMethods 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, updatedSlotMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Field Details
-
scope
-
context
protected swim.streamlet.StreamletContext context -
version
protected int version
-
-
Constructor Details
-
AbstractRecordStreamlet
-
AbstractRecordStreamlet
public AbstractRecordStreamlet()
-
-
Method Details
-
streamletScope
-
setStreamletScope
-
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
- Overrides:
containsKeyin classswim.structure.Record
-
get
public swim.structure.Value get(swim.structure.Value key) - Overrides:
getin classswim.structure.Record
-
get
- Overrides:
getin classswim.structure.Record
-
getAttr
public swim.structure.Value getAttr(swim.structure.Text key) - Overrides:
getAttrin classswim.structure.Record
-
getAttr
- Overrides:
getAttrin classswim.structure.Record
-
getSlot
public swim.structure.Value getSlot(swim.structure.Value key) - Overrides:
getSlotin classswim.structure.Record
-
getSlot
- Overrides:
getSlotin classswim.structure.Record
-
getField
public swim.structure.Field getField(swim.structure.Value key) - Overrides:
getFieldin classswim.structure.Record
-
getField
- 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
- 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
- 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
- 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
- Overrides:
removeKeyin classswim.structure.Record
-
clear
public void clear() -
inlet
-
inlet
-
bindInput
-
unbindInput
-
outlet
-
outlet
protected <O2 extends swim.structure.Value> swim.streamlet.Outlet<O2> outlet() -
inoutlet
-
decohere
public void decohere() -
recohere
public void recohere(int version) -
getInput
-
getInput
-
getInput
-
getInput
-
castInput
-
castInput
-
castInput
public <T> T castInput(swim.streamlet.Inlet<? extends I> inlet, swim.structure.Form<T> form, T orElse) -
castInput
-
coerceInput
-
coerceInput
-
coerceInput
public <T> T coerceInput(swim.streamlet.Inlet<? extends I> inlet, swim.structure.Form<T> form, T orElse) -
coerceInput
-
getOutput
-
getOutput
-
disconnectInputs
public void disconnectInputs() -
disconnectOutputs
public void disconnectOutputs() -
willDecohereInlet
-
didDecohereInlet
-
willRecohereInlet
-
didRecohereInlet
-
willDecohereOutlet
-
didDecohereOutlet
-
willRecohereOutlet
-
didRecohereOutlet
-
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)
-