Package convex.core.lang.ops
Class Query<T extends ACell>
java.lang.Object
convex.core.data.AObject
convex.core.data.ACell
convex.core.lang.AOp<T>
convex.core.lang.ops.AMultiOp<T>
convex.core.lang.ops.Query<T>
- Type Parameters:
T
- Result type of Op
- All Implemented Interfaces:
IValidated
,IWriteable
Op for executing a sequence of child operations in order in query mode (no state changes)
"Design is to take things apart in such a way that they can be put back
together"
- Rich Hickey
-
Field Summary
Fields inherited from class convex.core.data.ACell
cachedRef, EMPTY_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecutes this op with the given context.byte
opCode()
Returns the opcode for this opboolean
print
(BlobBuilder bb, long limit) Prints this Object to a readable String Representation.read
(ByteBuffer b) Recreates this object with an updated list of child Ops.Methods inherited from class convex.core.lang.ops.AMultiOp
encodeRaw, estimatedEncodingSize, getRef, getRefCount, updateRefs, validateCell
Methods inherited from class convex.core.lang.AOp
encode, getTag, getType, isCanonical, isCVMValue, toCanonical
Methods inherited from class convex.core.data.ACell
announce, announce, attachMemorySize, attachRef, cachedEncoding, cachedHash, calcMemorySize, createAnnounced, createEncoding, createPersisted, createPersisted, createRef, equals, equals, getCanonical, getChildRefs, getEncoding, getEncodingLength, getHash, getMemorySize, getRef, hashCode, isCompletelyEncoded, isEmbedded, mark, mark, toCVMString, toString, validate, write
Methods inherited from class convex.core.data.AObject
attachEncoding, print, print
-
Constructor Details
-
Query
-
-
Method Details
-
create
-
recreate
Description copied from class:AMultiOp
Recreates this object with an updated list of child Ops. -
create
-
execute
Description copied from class:AOp
Executes this op with the given context. Must preserve depth unless an exceptional is returned. -
print
Description copied from class:AObject
Prints this Object to a readable String Representation. SECURITY: Must halt and return false in O(1) time when limit of printing is exceeded otherwise DoS attacks may be possible. -
opCode
public byte opCode()Description copied from class:AOp
Returns the opcode for this op -
read
- Throws:
BadFormatException
-
read
- Throws:
BadFormatException
-