package
24.1.0-rc5
Repository: https://github.com/hypermodeinc/dgraph.git
Documentation: pkg.go.dev

# Functions

Cleanup waits until the closer has finished processing.
DeleteAll deletes all entries in the posting list.
DeleteData deletes all data for the namespace but leaves types and schema intact.
DeleteNamespace bans the namespace and deletes its predicates/types from the schema.
DeletePredicate deletes all entries and indices for a given predicate.
FromBackupPostingList converts a posting list in the format used for backups to a normal posting list.
No description provided by the author
No description provided by the author
GetNoStore returns the list stored in the key or creates a new one if it doesn't exist.
No description provided by the author
Init initializes the posting lists package, the in memory and dirty list hash.
MarshalPostingList returns a KV with the marshalled posting list.
No description provided by the author
No description provided by the author
NewList returns a new list with an immutable layer set to plist and the timestamp of the immutable layer set to minTs.
NewLocalCache returns a new LocalCache instance.
NewPosting takes the given edge and returns its equivalent representation as a posting.
No description provided by the author
NewTxn returns a new Txn instance.
NewTxnWriter returns a new TxnWriter instance.
No description provided by the author
No description provided by the author
NoCache returns a new LocalCache instance, which won't cache anything.
Oracle returns the global oracle instance.
ReadPostingList constructs the posting list from the disk using the passed iterator.
RemoveCacheFor will delete the list corresponding to the given key.
No description provided by the author
TypeID returns the typeid of destination vertex.
No description provided by the author

# Constants

BitCompletePosting signals that the values stores a complete posting list.
BitDeltaPosting signals that the value stores the delta of a posting list.
BitEmptyPosting signals that the value stores an empty posting list.
BitSchemaPosting signals that the value stores a schema or type.
Del means delete in mutation layer.
Ovr means overwrite in mutation layer.
Set means set in mutation layer.

# Variables

Config stores the posting options of this instance.
ErrHighPriorityOp is returned when rollup is cancelled so that operations could start.
ErrInvalidKey is returned when trying to read a posting list using an invalid key (e.g the key to a single part of a larger multi-part list).
ErrNoValue would be returned if no value was found in the posting list.
ErrRetry can be triggered if the posting list got deleted from memory due to a hard commit.
ErrStopIteration is returned when an iteration is terminated early.
ErrTsTooOld is returned when a transaction is too old to be applied.
IncrRollup is used to batch keys for rollup incrementally.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
IndexRebuild holds the info needed to initiate a rebuilt of the indices.
List stores the in-memory representation of a posting list.
ListOptions is used in List.Uids (in posting) to customize our output list of UIDs, for each posting list.
LocalCache stores a cache of posting lists and deltas.
No description provided by the author
MutableLayer is the structure that will store mutable layer of the posting list.
Options contains options for the postings package.
No description provided by the author
Txn represents a transaction.
TxnWriter is in charge or writing transactions to badger.

# Interfaces

No description provided by the author