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 network transaction types.
-
Uses of Ref in convex.core
Methods in convex.core that return Ref -
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.Index.EMPTY_CHILDREN
List.EMPTY_REF
Maps.EMPTY_REF
Sets.EMPTY_REF
static final Ref
<StringShort> Strings.EMPTY_REF
static final Ref
<VectorLeaf<?>> VectorLeaf.EMPTY_REF
Ref
<?> Refs.RefTreeStats.root
Methods in convex.core.data that return RefModifier and TypeMethodDescriptionRef
<?> Ref.createArray
(T[] values) 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.ABlob.getElementRef
(long index) ABlobLike.getElementRef
(long index) ACountable.getElementRef
(long index) Gets a Ref to the element at the specified element index in this collectionAMap.getElementRef
(long index) ASequence.getElementRef
(long index) Gets the element Ref at the specified indexAString.getElementRef
(long i) ASymbolic.getElementRef
(long index) 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) AVector.getElementRefUnsafe
(long i) Gets an element Ref from this vector, assuming bounds already checkedMapEntry.getElementRefUnsafe
(long i) VectorArray.getElementRefUnsafe
(long i) VectorLeaf.getElementRefUnsafe
(long i) VectorTree.getElementRefUnsafe
(long i) MapEntry.getKeyRef()
AArrayBlob.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.Address.getRef
(int i) AIndex.getRef
(int i) ALongBlob.getRef
(int i) AMapEntry.getRef
(int i) ARecordGeneric.getRef
(int index) ASymbolic.getRef
(int i) BlobTree.getRef
(int i) Gets a Ref from a Cell by indexIndex.getRef
(int i) List.getRef
(int i) MapEntry.getRef
(int i) MapLeaf.getRef
(int i) MapTree.getRef
(int i) PeerStatus.getRef
(int i) SetLeaf.getRef
(int i) SetTree.getRef
(int i) SignedData.getRef
(int i) StringShort.getRef
(int i) StringTree.getRef
(int i) Syntax.getRef
(int i) VectorArray.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) SignedData.getValueRef()
Ref.markEmbedded
(boolean isEmbedded) Ref.nil()
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.Reads a ref from the given Blob position.Reads a Ref or embedded Cell value from a Blob Converts Embedded Cells to Direct Refs automatically.Ref.setFlags
(int newFlags) Sets the Flags for this Ref.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) Updates 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 TypeMethodDescriptionRefs.accumulateRefSet
(ACell a) Accumulates the set of all unique Refs in the given object.Refs.accumulateRefSet
(Ref<?> root) Methods in convex.core.data with parameters of type RefModifier and TypeMethodDescriptionRefs.accumulateRefSet
(Ref<?> root) Ref
<?> void
Updates the cached ref of this Cellstatic void
Refs.checkConsistentStores
(Ref<?> root, AStore store) Checks the complete tree of Refs is consistent with the given storeint
final 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 <T extends ACell>
SignedData<T> SignedData.create
(ASignature sig, Ref<T> ref) Creates a SignedData object with the given parameters.static <T extends ACell>
SignedData<T> SignedData.create
(AccountKey address, ASignature sig, Ref<T> ref) Creates a SignedData object with the given parameters.Dissoc given a Ref to the key value.abstract boolean
Checks if two Ref Values are equal.boolean
boolean
AHashSet.excludeRef
(Ref<?> valueRef) SetLeaf.excludeRef
(Ref<?> key) SetTree.excludeRef
(Ref<?> keyRef) AIndex.getKeyRefEntry
(Ref<ACell> ref) AMap.getKeyRefEntry
(Ref<ACell> ref) Get an entry given a Ref to the key value.ARecord.getKeyRefEntry
(Ref<ACell> keyRef) MapLeaf.getKeyRefEntry
(Ref<ACell> ref) MapTree.getKeyRefEntry
(Ref<ACell> ref) SignedData.getMessageForRef
(Ref<T> ref) static Refs.RefTreeStats
Refs.getRefTreeStats
(Ref<?> root) Gets statistics for a tree of RefsAHashSet.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.static <T extends ACell>
SignedData<T> Signs a data value Ref with the given keypair.Index.unsafeCreate
(long depth, MapEntry<K, V> entry, Ref<Index>[] entries, int mask, long count) 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.static void
Refs.visitAllRefs
(Ref<?> root, Consumer<Ref<?>> visitor) Visit all Refs in a tree of Refs, in depth first order.Method parameters in convex.core.data with type arguments of type RefModifier and TypeMethodDescriptionstatic <T extends ACell>
TAnnounces a Cell, reporting as novelty any cells that have not been previously announcedSets.createWithShift
(int shift, ArrayList<Ref<T>> values) Persists 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.static void
Refs.visitAllRefs
(Ref<?> root, Consumer<Ref<?>> visitor) Visit all Refs in a tree of Refs, in depth first order.static void
Cells.visitBranchRefs
(ACell a, Consumer<Ref<?>> visitor) Visit all non-embedded branches from a Cell.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.impl
Methods in convex.core.data.impl that return RefModifier and TypeMethodDescriptionKeySet.getElementRef
(long index) KeySet.getRefByHash
(Hash hash) KeySet.getValueRef
(ACell k) Methods in convex.core.data.impl 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 TypeMethodDescriptionACachedStore.checkCache
(Hash h) AStore.checkCache
(Hash h) checks in-memory cache for a stored Ref.MemoryStore.checkCache
(Hash h) Ref
<?> Gets the Cached Ref for a given hash, or null if not cached.AStore.getRootRef()
Gets a Ref for Root Data.MemoryStore.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 in the store.MemoryStore.refForHash
(Hash hash) AStore.setRootData
(T data) Sets the root data for this StoreMemoryStore.setRootData
(T data) 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) void
Stores a Ref in the cacheStores 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
Fields in convex.core.transactions declared as RefMethods in convex.core.transactions that return RefModifier and TypeMethodDescriptionCall.getRef
(int i) Invoke.getRef
(int i) Multi.getRef
(int i) Transfer.getRef
(int i) Constructors in convex.core.transactions with parameters of type RefModifierConstructorDescriptionprotected
Multi
(Address origin, long sequence, int mode, Ref<AVector<ATransaction>> txs) -
Uses of Ref in etch
Modifier and TypeMethodDescriptionEtchStore.readStoreRef
(Hash hash) EtchStore.refForHash
(Hash hash) EtchStore.setRootData
(T data) EtchStore.storeRef
(Ref<T> ref, int requiredStatus, Consumer<Ref<ACell>> noveltyHandler, 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 TypeMethodDescriptionprotected <T extends ACell>
voidEtchStore.addToCache
(Ref<T> ref) EtchStore.storeRef
(Ref<T> ref, int requiredStatus, Consumer<Ref<ACell>> noveltyHandler, 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.