Interface VariableState
- All Known Subinterfaces:
MutableVariableState
- All Known Implementing Classes:
DbVariableState
public interface VariableState
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordData wrapper for a variable. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longThe value of the parent scope key for scope with no parents. -
Method Summary
Modifier and TypeMethodDescriptionlonggetParentScopeKey(long childScopeKey) org.agrona.DirectBuffergetVariable(long scopeKey, org.agrona.DirectBuffer name) org.agrona.DirectBuffergetVariable(long scopeKey, org.agrona.DirectBuffer name, int nameOffset, int nameLength) getVariableInstanceLocal(long scopeKey, org.agrona.DirectBuffer name) org.agrona.DirectBuffergetVariableLocal(long scopeKey, org.agrona.DirectBuffer name) org.agrona.DirectBuffergetVariablesAsDocument(long scopeKey) org.agrona.DirectBuffergetVariablesAsDocument(long scopeKey, Collection<org.agrona.DirectBuffer> names) getVariablesLocal(long scopeKey) Returns a list of all variables at the given scope key.org.agrona.DirectBuffergetVariablesLocalAsDocument(long scopeKey) booleanisEmpty()
-
Field Details
-
NO_PARENT
static final long NO_PARENTThe value of the parent scope key for scope with no parents.- See Also:
-
-
Method Details
-
getVariableLocal
org.agrona.DirectBuffer getVariableLocal(long scopeKey, org.agrona.DirectBuffer name) -
getVariable
org.agrona.DirectBuffer getVariable(long scopeKey, org.agrona.DirectBuffer name) -
getVariable
org.agrona.DirectBuffer getVariable(long scopeKey, org.agrona.DirectBuffer name, int nameOffset, int nameLength) -
getVariablesAsDocument
org.agrona.DirectBuffer getVariablesAsDocument(long scopeKey) -
getVariablesAsDocument
org.agrona.DirectBuffer getVariablesAsDocument(long scopeKey, Collection<org.agrona.DirectBuffer> names) -
getVariablesLocalAsDocument
org.agrona.DirectBuffer getVariablesLocalAsDocument(long scopeKey) -
isEmpty
boolean isEmpty() -
getVariablesLocal
Returns a list of all variables at the given scope key.This method differs from most other methods on this interface in that it does not traverse the scope hierarchy. It only returns variables that are directly stored at the given scope key.
- Parameters:
scopeKey- the scope key to get the variables for- Returns:
- a list of all variables at the given scope key
-
getVariableInstanceLocal
-
getParentScopeKey
long getParentScopeKey(long childScopeKey) - Returns:
- returns the parent scope key of the given
childScopeKey, orNO_PARENT
-