indexpb

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package indexpb defines the storage encoding of a Bloom filter index. Most of this package is generated by the protocol buffer compiler from the schema in index/indexpb/index.proto.

Index

Constants

This section is empty.

Variables

View Source
var (
	Index_HashFunc_name = map[int32]string{
		0: "DEFAULT",
	}
	Index_HashFunc_value = map[string]int32{
		"DEFAULT": 0,
	}
)

Enum value maps for Index_HashFunc.

View Source
var File_index_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Index

type Index struct {
	NumKeys     uint64         `protobuf:"varint,1,opt,name=num_keys,json=numKeys,proto3" json:"num_keys,omitempty"`                                  // total number of keys indexed
	Seeds       []uint64       `protobuf:"varint,2,rep,packed,name=seeds,proto3" json:"seeds,omitempty"`                                              // hash seeds used for lookup
	NumSegments uint64         `protobuf:"varint,5,opt,name=num_segments,json=numSegments,proto3" json:"num_segments,omitempty"`                      // number of bit vector segments
	SegmentData []byte         `protobuf:"bytes,6,opt,name=segment_data,json=segmentData,proto3" json:"segment_data,omitempty"`                       // zlib-compressed segment data
	HashFunc    Index_HashFunc `protobuf:"varint,4,opt,name=hash_func,json=hashFunc,proto3,enum=ffs.index.Index_HashFunc" json:"hash_func,omitempty"` // which hash function was used
	// contains filtered or unexported fields
}

An Index is the storage encoding of a Bloom filter index.

func (*Index) Descriptor deprecated

func (*Index) Descriptor() ([]byte, []int)

Deprecated: Use Index.ProtoReflect.Descriptor instead.

func (*Index) GetHashFunc

func (x *Index) GetHashFunc() Index_HashFunc

func (*Index) GetNumKeys

func (x *Index) GetNumKeys() uint64

func (*Index) GetNumSegments

func (x *Index) GetNumSegments() uint64

func (*Index) GetSeeds

func (x *Index) GetSeeds() []uint64

func (*Index) GetSegmentData

func (x *Index) GetSegmentData() []byte

func (*Index) MarshalJSON

func (idx *Index) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for an *Index, by delegating to the protojson marshaler. This allows a node to be encoded using the encoding/json package transparently.

func (*Index) ProtoMessage

func (*Index) ProtoMessage()

func (*Index) ProtoReflect

func (x *Index) ProtoReflect() protoreflect.Message

func (*Index) Reset

func (x *Index) Reset()

func (*Index) String

func (x *Index) String() string

type Index_HashFunc

type Index_HashFunc int32
const (
	Index_DEFAULT Index_HashFunc = 0
)

func (Index_HashFunc) Descriptor

func (Index_HashFunc) Enum

func (x Index_HashFunc) Enum() *Index_HashFunc

func (Index_HashFunc) EnumDescriptor deprecated

func (Index_HashFunc) EnumDescriptor() ([]byte, []int)

Deprecated: Use Index_HashFunc.Descriptor instead.

func (Index_HashFunc) Number

func (Index_HashFunc) String

func (x Index_HashFunc) String() string

func (Index_HashFunc) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL