package
0.0.0-20230410094002-959c02d50f95
Repository: https://github.com/vescale/zgraph.git
Documentation: pkg.go.dev

# Functions

DecodeBytes decodes bytes which is encoded by EncodeBytes before, returns the leftover bytes and decoded value if no error.
DecodeBytesDesc decodes bytes which is encoded by EncodeBytesDesc before, returns the leftover bytes and decoded value if no error.
DecodeCmpUintToInt decodes the u that encoded by EncodeIntToCmpUint.
DecodeComparableUvarint decodes mem-comparable uvarint.
DecodeComparableVarint decodes mem-comparable varint.
DecodeFloat decodes a float from a byte slice generated with EncodeFloat before.
DecodeFloatDesc decodes a float from a byte slice generated with EncodeFloatDesc before.
DecodeInt decodes value encoded by EncodeInt before.
DecodeIntDesc decodes value encoded by EncodeInt before.
DecodeUint decodes value encoded by EncodeUint before.
DecodeUintDesc decodes value encoded by EncodeInt before.
DecodeUvarint decodes value encoded by EncodeUvarint before.
DecodeVarint decodes value encoded by EncodeVarint before.
EdgeNonUniqueIndexKey encodes the non-unique index key described as above.
EncodeBytes guarantees the encoded value is in ascending order for comparison, encoding with the following rule: [group1][marker1]...[groupN][markerN] group is 8 bytes slice which is padding with 0.
EncodeBytesDesc first encodes bytes using EncodeBytes, then bitwise reverses encoded value to guarantee the encoded value is in descending order for comparison.
EncodeBytesExt is an extension of `EncodeBytes`, which will not encode for `isRawKv = true` but just append `data` to `b`.
EncodeComparableUvarint encodes uint64 into mem-comparable bytes.
EncodeComparableVarint encodes an int64 to a mem-comparable bytes.
EncodedBytesLength returns the length of data after encoded.
EncodeFloat encodes a float v into a byte slice which can be sorted lexicographically later.
EncodeFloatDesc encodes a float v into a byte slice which can be sorted lexicographically later.
EncodeInt appends the encoded value to slice b and returns the appended slice.
EncodeIntDesc appends the encoded value to slice b and returns the appended slice.
EncodeIntToCmpUint make int v to comparable uint type.
EncodeUint appends the encoded value to slice b and returns the appended slice.
EncodeUintDesc appends the encoded value to slice b and returns the appended slice.
EncodeUvarint appends the encoded value to slice b and returns the appended slice.
EncodeVarint appends the encoded value to slice b and returns the appended slice.
IncomingEdgeKey encodes the incoming edge key.
LabelKey returns the encoded key of specified graph/label.
LabelValue returns a zero which is represents the flag byte of normal value.
No description provided by the author
OutgoingEdgeKey encodes the outgoing edge key.
ParseEdgeNonUniqueIndexKey parses the edge non-unique key.
ParseIncomingEdgeKey parse the incoming edge key.
ParseOutgoingEdgeKey parse the outgoing edge key.
ParseUniqueIndexKey parse the unique key.
ParseVertexKey parses the vertex key.
ParseVertexNonUniqueIndexKey parses the vertex non-unique key.
UniqueIndexKey encodes the unique index key described as above.
VertexKey encodes the vertex key.
VertexNonUniqueIndexKey encodes the non-unique index key described as above.

# Constants

dstVertexID*/.
vertexID*/.

# Structs

PropertyDecoder is used to decode value bytes into datum.
PropertyEncoder is used to encode datums into value bytes.