Documentation ¶
Overview ¶
A very simply sorted map.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
func (*Document) TokenFrequency ¶
type Inverted ¶
type Inverted struct { NumDocuments uint64 NumTokens uint64 // contains filtered or unexported fields }
func NewInvertedIndex ¶
func NewInvertedIndex() *Inverted
func (*Inverted) AddDocument ¶
func (*Inverted) RemoveDocument ¶
TODO: Update word count to reflect removed documents?
type SortedMap ¶
type SortedMap struct {
// contains filtered or unexported fields
}
func NewSortedMap ¶
func NewSortedMap() *SortedMap
func (*SortedMap) OrderedKeys ¶
func (m *SortedMap) OrderedKeys() []key
Click to show internal directories.
Click to hide internal directories.