dmd

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package dmd maps document, offset pairs to internal document ids.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adder

type Adder struct {
	// contains filtered or unexported fields
}

func NewAdder

func NewAdder(root string, fr int) (*Adder, error)

func (*Adder) Add

func (t *Adder) Add(fid, start, end uint32) (uint32, error)

func (*Adder) Close

func (t *Adder) Close() error

func (*Adder) Last added in v0.0.9

func (t *Adder) Last() uint32

type T

type T struct {
	// contains filtered or unexported fields
}

func New

func New(root string) (*T, error)

func (*T) Close

func (t *T) Close() error

func (*T) Lookup

func (t *T) Lookup(did uint32) (fid, start, end uint32, err error)

func (*T) NumDocs added in v0.0.5

func (t *T) NumDocs() (uint64, error)

Jump to

Keyboard shortcuts

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