Uses of Class
convex.core.data.Ref
Packages that use Ref
Package
Description
Fundamental Convex classes used for the decentralised network
Data structures and algorithms, including a complete set of classes
required to implement immutable, decentralised data objects.
Implementation of CVM Primitive Data types
Internal CVM language implementation classes
CVM Operations, effectively the "machine code" of the CVM
Etch database for convergent immutable storage
Convex network transaction types.
Convex utility classes and miscellaneous functionality
Convex network transaction types.
-
Uses of Ref in convex.core
Methods in convex.core that return RefMethod parameters in convex.core with type arguments of type RefModifier and TypeMethodDescriptionPeer.persistState(Consumer<Ref<ACell>> noveltyHandler)
Persist the state of the Peer to the current store. -
Uses of Ref in convex.core.data
Subclasses of Ref in convex.core.dataModifier and TypeClassDescriptionclass
Ref subclass for direct in-memory references.class
Reference class implemented via a soft reference and store lookup.Fields in convex.core.data declared as RefModifier and TypeFieldDescriptionACell.cachedRef
Cached Ref.List.EMPTY_REF
Sets.EMPTY_REF
static Ref<VectorLeaf<?>>
VectorLeaf.EMPTY_REF
Methods in convex.core.data that return RefModifier and TypeMethodDescriptionRef<?>
Ref.createArray(T[] values)
ACell.createPersisted(T value)
Creates a persisted Ref with the given value in the current store.ACell.createPersisted(T value, Consumer<Ref<ACell>> noveltyHandler)
Creates a persisted Ref with the given value in the current store.AccountKey.createRef()
ACell.createRef()
Creates a new Ref for this CellALongBlob.createRef()
ASymbolic.createRef()
Maps.emptyRef()
Sets.emptyRef()
Ref.ensureCanonical()
Ensures this Ref is canonicalRefSoft.ensureCanonical()
Ref.get(T value)
Returns a direct Ref wrapping the given value.ACell.getChildRefs()
Gets an array of child Refs for this Cell, in the same order as order accessible by getRef.SignedData.getDataRef()
ABlob.getElementRef(long index)
ACountable.getElementRef(long index)
Gets a Ref to the element at the specified index in this collectionAMap.getElementRef(long index)
ASequence.getElementRef(long index)
Gets the element Ref at the specified indexAString.getElementRef(long i)
List.getElementRef(long i)
MapEntry.getElementRef(long i)
SetLeaf.getElementRef(long i)
SetTree.getElementRef(long i)
VectorArray.getElementRef(long index)
VectorLeaf.getElementRef(long i)
VectorTree.getElementRef(long i)
MapEntry.getKeyRef()
ABlobMap.getRef(int i)
AccountStatus.getRef(int i)
ACell.getRef()
Gets the Ref for this Cell, creating a new direct reference if necessaryACell.getRef(int i)
Gets a numbered child Ref from within this Cell.AMapEntry.getRef(int i)
ARecord.getRef(int index)
ARecordGeneric.getRef(int index)
BlobMap.getRef(int i)
BlobTree.getRef(int i)
List.getRef(int i)
MapEntry.getRef(int i)
MapLeaf.getRef(int i)
MapTree.getRef(int i)
SetLeaf.getRef(int i)
SetTree.getRef(int i)
SignedData.getRef(int i)
StringTree.getRef(int i)
Syntax.getRef(int i)
VectorLeaf.getRef(int i)
VectorTree.getRef(int i)
ASet.getRefByHash(Hash hash)
Gets the Ref in the Set for a given hash, or null if not foundSetLeaf.getRefByHash(Hash hash)
SetTree.getRefByHash(Hash hash)
ASet.getValueRef(ACell k)
Gets the Ref in the Set for a given value, or null if not foundMapEntry.getValueRef()
SetLeaf.getValueRef(ACell k)
SetTree.getValueRef(ACell k)
Ref.markEmbedded(boolean isEmbedded)
Ref.persist()
Persists this Ref in the current store if not embedded and not already persisted.Persists this Ref in the current store if not embedded and not already persisted.Ref.persistShallow()
Persists a Ref shallowly in the current store.Ref.persistShallow(Consumer<Ref<ACell>> noveltyHandler)
Persists a Ref shallowly in the current store.Ref.readRaw(ByteBuffer data)
Reads a ref from the given ByteBuffer.Format.readRef(ByteBuffer bb)
Reads a Ref or embedded Cell value from the ByteBuffer.Ref.setFlags(int newFlags)
Sets the Flags for this Ref.Ref.toDirect()
Converts this Ref to a RefDirectRefDirect.toDirect()
Ref.updateRefs(Ref<T>[] refs, IRefFunction func)
Updates an array of Refs with the given function.Ref.withFlags(int newFlags)
Create a new Ref of the same type with updated flagsRef.withMinimumStatus(int newStatus)
Ensures the Ref has the given status, at minimum Assumes any necessary changes to storage will be made separately.Updates the value stored within this Ref.Methods in convex.core.data that return types with arguments of type RefModifier and TypeMethodDescriptionRef.accumulateRefSet(Object a)
Accumulates the set of all unique Refs in the given object.Methods in convex.core.data with parameters of type RefModifier and TypeMethodDescriptionRef<?>
void
Updates the cached ref of this Cellint
boolean
AMap.containsKeyRef(Ref<ACell> ref)
Creates a SetLeaf with the specified elements.Creates a SetLeaf with the specified elements.Create a SetTree given a number of element Refs to distribute among children.static SignedData<ATransaction>
SignedData.create(AKeyPair kp, ASignature sig, Ref<ATransaction> ref)
static <T extends ACell>
SignedData<T>SignedData.create(AccountKey address, ASignature sig, Ref<T> ref)
Creates a SignedData object with the given parameters.static <T extends ACell>
SignedData<T>SignedData.createWithRef(AKeyPair keyPair, Ref<T> ref)
Signs a data value Ref with the given keypair.Dissoc given a Ref to the key value.abstract boolean
Checks if two Ref Values are equal.boolean
boolean
AHashSet.excludeRef(Ref<T> valueRef)
SetLeaf.excludeRef(Ref<T> key)
SetTree.excludeRef(Ref<T> keyRef)
ABlobMap.getKeyRefEntry(Ref<ACell> ref)
AMap.getKeyRefEntry(Ref<ACell> ref)
Get an entry given a Ref to the key value.ARecord.getKeyRefEntry(Ref<ACell> ref)
MapLeaf.getKeyRefEntry(Ref<ACell> ref)
MapTree.getKeyRefEntry(Ref<ACell> ref)
AHashSet.includeRef(Ref<T> ref)
AHashSet.includeRef(Ref<T> e, int i)
ASet.includeRef(Ref<T> ref)
Adds a value to this set using a Ref to the valueSetLeaf.includeRef(Ref<T> ref)
SetLeaf.includeRef(Ref<T> e, int shift)
SetTree.includeRef(Ref<T> ref)
SetTree.includeRef(Ref<T> e, int shift)
SetTree.replaceChild(int i, Ref<AHashSet<T>> newChild)
Replaces the child ref at a given index position.SetLeaf.unsafeCreate(Ref<V>... refs)
Create a SetLeaf with raw element Refs.SetTree.unsafeCreate(Ref<AHashSet<T>>[] children, int shift, short mask, long count)
Ref.updateRefs(Ref<T>[] refs, IRefFunction func)
Updates an array of Refs with the given function.Method parameters in convex.core.data with type arguments of type RefModifier and TypeMethodDescription<T extends ACell>
Tstatic <T extends ACell>
TACell.createAnnounced(T value, Consumer<Ref<ACell>> noveltyHandler)
Creates an ANNOUNCED Ref with the given value in the current store.ACell.createPersisted(T value, Consumer<Ref<ACell>> noveltyHandler)
Creates a persisted Ref with the given value in the current store.Sets.createWithShift(int shift, ArrayList<Ref<T>> values)
<T extends ACell>
TPersists this Ref in the current store if not embedded and not already persisted.Ref.persistShallow(Consumer<Ref<ACell>> noveltyHandler)
Persists a Ref shallowly in the current store.abstract void
ASequence.visitElementRefs(Consumer<Ref<T>> f)
Visits all elements in this sequence, calling the specified consumer for each.void
List.visitElementRefs(Consumer<Ref<T>> f)
void
MapEntry.visitElementRefs(Consumer<Ref<ACell>> f)
void
VectorArray.visitElementRefs(Consumer<Ref<T>> f)
void
VectorLeaf.visitElementRefs(Consumer<Ref<T>> f)
void
VectorTree.visitElementRefs(Consumer<Ref<T>> f)
Constructors in convex.core.data with parameters of type Ref -
Uses of Ref in convex.core.data.prim
Methods in convex.core.data.prim that return Ref -
Uses of Ref in convex.core.lang.impl
Methods in convex.core.lang.impl that return Ref -
Uses of Ref in convex.core.lang.ops
Methods in convex.core.lang.ops that return RefModifier and TypeMethodDescriptionAMultiOp.getRef(int i)
Constant.getRef(int i)
Def.getRef(int i)
Lambda.getRef(int i)
Let.getRef(int i)
Lookup.getRef(int i)
Set.getRef(int i)
Methods in convex.core.lang.ops with parameters of type RefConstructors in convex.core.lang.ops with parameters of type Ref -
Uses of Ref in convex.core.store
Methods in convex.core.store that return RefModifier and TypeMethodDescriptionMemoryStore.persistRef(Ref<T> ref, Consumer<Ref<ACell>> noveltyHandler, int requiredStatus, boolean topLevel)
AStore.refForHash(Hash hash)
Gets the stored Ref for a given hash value, or null if not found.MemoryStore.refForHash(Hash hash)
Stores a @Ref in long term storage as defined by this store implementation.AStore.storeTopRef(Ref<T> ref, int status, Consumer<Ref<ACell>> noveltyHandler)
Stores a top level @Ref in long term storage as defined by this store implementation.MemoryStore.storeTopRef(Ref<T> ref, int status, Consumer<Ref<ACell>> noveltyHandler)
Methods in convex.core.store with parameters of type RefModifier and TypeMethodDescriptionMemoryStore.persistRef(Ref<T> ref, Consumer<Ref<ACell>> noveltyHandler, int requiredStatus, boolean topLevel)
Stores a @Ref in long term storage as defined by this store implementation.AStore.storeTopRef(Ref<T> ref, int status, Consumer<Ref<ACell>> noveltyHandler)
Stores a top level @Ref in long term storage as defined by this store implementation.MemoryStore.storeTopRef(Ref<T> ref, int status, Consumer<Ref<ACell>> noveltyHandler)
Method parameters in convex.core.store with type arguments of type RefModifier and TypeMethodDescriptionMemoryStore.persistRef(Ref<T> ref, Consumer<Ref<ACell>> noveltyHandler, int requiredStatus, boolean topLevel)
Stores a @Ref in long term storage as defined by this store implementation.AStore.storeTopRef(Ref<T> ref, int status, Consumer<Ref<ACell>> noveltyHandler)
Stores a top level @Ref in long term storage as defined by this store implementation.MemoryStore.storeTopRef(Ref<T> ref, int status, Consumer<Ref<ACell>> noveltyHandler)
-
Uses of Ref in convex.core.transactions
Methods in convex.core.transactions that return Ref -
Uses of Ref in convex.core.util
Methods in convex.core.util that return Ref -
Uses of Ref in etch
Modifier and TypeMethodDescriptionEtch.read(AArrayBlob key)
Reads a Blob from the database, returning null if not foundEtchStore.refForHash(Hash hash)
EtchStore.storeRef(Ref<T> ref, Consumer<Ref<ACell>> noveltyHandler, int requiredStatus, boolean topLevel)
EtchStore.storeTopRef(Ref<T> ref, int status, Consumer<Ref<ACell>> noveltyHandler)
Etch.write(AArrayBlob key, Ref<ACell> value)
Writes a key / value pair to the immutable store.Modifier and TypeMethodDescriptionEtchStore.storeRef(Ref<T> ref, Consumer<Ref<ACell>> noveltyHandler, int requiredStatus, boolean topLevel)
EtchStore.storeTopRef(Ref<T> ref, int status, Consumer<Ref<ACell>> noveltyHandler)
Etch.write(AArrayBlob key, Ref<ACell> value)
Writes a key / value pair to the immutable store.