Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxInMemoryDedupeSize = 100 * 1024 * 1024
MaxInMemoryDedupeSize (default : 100 MB)
Functions ¶
This section is empty.
Types ¶
type Dedupe ¶
type Dedupe struct {
// contains filtered or unexported fields
}
Dedupe is string deduplication type which removes all duplicates if
func NewDedupe ¶
NewDedupe returns a dedupe instance which removes all duplicates Note: If byteLen is not correct/specified alterx may consume lot of memory
func (*Dedupe) GetResults ¶
GetResults iterates over dedupe storage and returns results
type DedupeBackend ¶
type LevelDBBackend ¶
type LevelDBBackend struct {
// contains filtered or unexported fields
}
func NewLevelDBBackend ¶
func NewLevelDBBackend() *LevelDBBackend
func (*LevelDBBackend) Cleanup ¶
func (l *LevelDBBackend) Cleanup()
func (*LevelDBBackend) IterCallback ¶
func (l *LevelDBBackend) IterCallback(callback func(elem string))
func (*LevelDBBackend) Upsert ¶
func (l *LevelDBBackend) Upsert(elem string) bool
type MapBackend ¶
type MapBackend struct {
// contains filtered or unexported fields
}
func NewMapBackend ¶
func NewMapBackend() *MapBackend
func (*MapBackend) Cleanup ¶
func (m *MapBackend) Cleanup()
func (*MapBackend) IterCallback ¶
func (m *MapBackend) IterCallback(callback func(elem string))
func (*MapBackend) Upsert ¶
func (m *MapBackend) Upsert(elem string) bool
Click to show internal directories.
Click to hide internal directories.