java.lang.Object
swim.structure.Item
swim.structure.Value
swim.structure.Record
swim.dataflow.AbstractRecordOutlet
swim.dataflow.RecordModel
- All Implemented Interfaces:
Comparable<Item>,Iterable<Item>,Collection<Item>,List<Item>,Debug,Display,RecordOutlet,MapOutlet<Value,,Value, Record> Outlet<Record>,StreamletScope<Value>,Builder<Item,,Record> PairBuilder<Value,Value, Record>
- Direct Known Subclasses:
RecordScope
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashTrieMap<Value,RecordFieldUpdater> protected RecordFields inherited from class swim.dataflow.AbstractRecordOutlet
effects, outlets, outputs, version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanAdds a single input value to this builder, returningtrueif the state of the builder changed.voidvoidclear()voidvoidcompileField(Field field, int index) voidcompileItem(Item item, int index) voidcompileValue(Value value, int index) booleancontainsKey(Value key) Returnstrueif thisRecordhas aFieldmember with a key that is equal to the givenkey; otherwise returnsfalseif thisRecordhas noFieldmember with a key equal to the givenkey.booleancontainsOwnKey(Value key) static RecordModelvoidDisconnects allInlets dominated by thisOutletin the dataflow dependency graph.intReturns the number ofFieldmembers contained in thisRecord.get(int index) Returns the member of thisRecordat the givenindex, if theindexis greater than or equal to zero, and less than thelengthof thisRecord.Returns the lastFieldmember of thisRecordwhose key is equal to the givenkey; returnsnullif thisRecordhas noFieldmember with akeyequal to the givenkey.getItem(int index) static RecordModelintbooleanisArray()booleanisEmpty()Returnstrueif thisRecordhas no members.booleanisObject()Returns anIteratorover the keys in the current state of thisMapOutlet.intlastIndexOf(Object item) voidmaterialize(Record record) voidmaterializeField(Field field) voidmaterializeItem(Item item) voidmaterializeValue(Value value) memoize()static RecordModelof()static RecordModelstatic RecordModelvoidreify()voidremove(int index) Replaces the member of thisRecordat the givenindexwith a newitem, returning the previousItemat the givenindex, if theindexis greater than or equal to zero, and less than thelengthof thisRecord.intsize()Returns the number of members contained in thisRecord.subList(int fromIndex, int toIndex) intReturns the number ofValuemembers contained in thisRecord.Methods inherited from class swim.dataflow.AbstractRecordOutlet
bindOutput, decohereInput, decohereInputKey, didDecohereInput, didDecohereInputKey, didRecohereInput, didRecohereInputKey, disconnectOutputs, get, onDecohereInput, onDecohereInputKey, onRecohereInput, onRecohereInputKey, outlet, outlet, outputIterator, recohereInput, recohereInputKey, streamletContext, streamletScope, unbindOutput, unbindOutputs, willDecohereInput, willDecohereInputKey, willRecohereInput, willRecohereInputKeyMethods 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, containsKey, containsValue, create, create, debug, empty, entrySet, equals, evaluate, fieldIterator, fieldSet, flattened, get, getAttr, getField, getSlot, hashCode, head, header, headers, isAliased, isConstant, isDefinite, isMutable, item, item, item, item, item, item, item, iterator, keySet, length, listIterator, listIterator, 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, removeKey, removeKey, 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, substitute, tag, tail, target, toArray, toArray, typeOrder, unflattened, updated, updated, updatedAttr, updatedAttr, updatedSlot, updatedSlot, 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, 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
-
state
-
fieldUpdaters
-
-
Constructor Details
-
RecordModel
-
RecordModel
public RecordModel()
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from class:RecordReturnstrueif thisRecordhas no members. -
isArray
public boolean isArray()Description copied from class:Record -
isObject
public boolean isObject()Description copied from class:Record -
size
public int size()Description copied from class:RecordReturns the number of members contained in thisRecord. -
fieldCount
public int fieldCount()Description copied from class:RecordReturns the number ofFieldmembers contained in thisRecord.- Overrides:
fieldCountin classRecord
-
valueCount
public int valueCount()Description copied from class:RecordReturns the number ofValuemembers contained in thisRecord.- Overrides:
valueCountin classRecord
-
containsKey
Description copied from class:RecordReturnstrueif thisRecordhas aFieldmember with a key that is equal to the givenkey; otherwise returnsfalseif thisRecordhas noFieldmember with a key equal to the givenkey.- Specified by:
containsKeyin interfaceMapOutlet<Value,Value, Record> - Overrides:
containsKeyin classRecord
-
containsOwnKey
- Overrides:
containsOwnKeyin classAbstractRecordOutlet
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Item>- Overrides:
lastIndexOfin classRecord
-
get
Description copied from class:Record -
getAttr
Description copied from class:Record -
getSlot
Description copied from class:Record -
getField
Description copied from class:RecordReturns the lastFieldmember of thisRecordwhose key is equal to the givenkey; returnsnullif thisRecordhas noFieldmember with akeyequal to the givenkey. -
get
Description copied from class:RecordReturns the member of thisRecordat the givenindex, if theindexis greater than or equal to zero, and less than thelengthof thisRecord. -
getItem
Description copied from class:Record -
bindValue
-
put
-
put
-
putAttr
-
putAttr
-
putSlot
-
putSlot
-
setItem
Description copied from class:RecordReplaces the member of thisRecordat the givenindexwith a newitem, returning the previousItemat the givenindex, if theindexis greater than or equal to zero, and less than thelengthof thisRecord. -
add
Description copied from interface:BuilderAdds a single input value to this builder, returningtrueif the state of the builder changed. -
add
-
remove
-
clear
public void clear() -
subList
-
keyIterator
Description copied from interface:MapOutletReturns anIteratorover the keys in the current state of thisMapOutlet.- Specified by:
keyIteratorin interfaceMapOutlet<Value,Value, Record> - Specified by:
keyIteratorin classAbstractRecordOutlet
-
disconnectInputs
public void disconnectInputs()Description copied from interface:OutletDisconnects allInlets dominated by thisOutletin the dataflow dependency graph. Used to recursively clean up chains of combinators passing through thisOutlet.- Specified by:
disconnectInputsin interfaceOutlet<Record>- Overrides:
disconnectInputsin classAbstractRecordOutlet
-
memoize
-
materialize
-
materializeItem
-
materializeField
-
materializeValue
-
compile
-
compileItem
-
compileField
-
compileValue
-
reify
-
reify
public void reify() -
reifyItem
-
create
-
of
-
of
-
of
-
globalScope
-