package
23.1.1+incompatible
Repository: https://github.com/dgraph-io/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.
GetNoStore returns the list stored in the key or creates a new one if it doesn't exist.
Init initializes the posting lists package, the in memory and dirty list hash.
MarshalPostingList returns a KV with the marshalled posting list.
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.
NewTxn returns a new Txn instance.
NewTxnWriter returns a new TxnWriter instance.
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.
ResetCache will clear all the cached list.
TypeID returns the typeid of destination vertex.

# 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.
Set means overwrite 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

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.
Options contains options for the postings package.
Txn represents a transaction.
TxnWriter is in charge or writing transactions to badger.