Documentation ¶
Index ¶
- Constants
- func CreateHashValue(ids [][]byte, unique bool) ([]byte, []byte)
- func NewAATable() (map[[2]rune]uint32, map[uint32][2]rune)
- func NewKVStore(kv *KVStore, options badger.Options, flushSize int, nbOfThreads int)
- func RemoveDuplicatesFromSlice(s [][]byte) [][]byte
- func SplitHashValue(hashValue []byte) ([][]byte, error)
- type KC_
- type KComb
- func (*KComb) Descriptor() ([]byte, []int)
- func (m *KComb) GetCount() uint32
- func (m *KComb) GetProteinKeys() []uint32
- func (*KComb) ProtoMessage()
- func (m *KComb) Reset()
- func (m *KComb) String() string
- func (m *KComb) XXX_DiscardUnknown()
- func (m *KComb) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KComb) XXX_Merge(src proto.Message)
- func (m *KComb) XXX_Size() int
- func (m *KComb) XXX_Unmarshal(b []byte) error
- type KSettings
- func (*KSettings) Descriptor() ([]byte, []int)
- func (m *KSettings) GetCreationDate() string
- func (m *KSettings) GetDatabaseIndexed() bool
- func (m *KSettings) GetIDsIndexed() bool
- func (m *KSettings) GetName() string
- func (m *KSettings) GetNamesIndexed() bool
- func (m *KSettings) GetOriginalFile() string
- func (m *KSettings) GetPort() int32
- func (*KSettings) ProtoMessage()
- func (m *KSettings) Reset()
- func (m *KSettings) String() string
- func (m *KSettings) XXX_DiscardUnknown()
- func (m *KSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KSettings) XXX_Merge(src proto.Message)
- func (m *KSettings) XXX_Size() int
- func (m *KSettings) XXX_Unmarshal(b []byte) error
- type KStats
- func (*KStats) Descriptor() ([]byte, []int)
- func (m *KStats) GetFeatures() []string
- func (m *KStats) GetNumberOfAA() uint64
- func (m *KStats) GetNumberOfKCombSets() uint64
- func (m *KStats) GetNumberOfKmers() uint64
- func (m *KStats) GetNumberOfProteins() uint64
- func (*KStats) ProtoMessage()
- func (m *KStats) Reset()
- func (m *KStats) String() string
- func (m *KStats) XXX_DiscardUnknown()
- func (m *KStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KStats) XXX_Merge(src proto.Message)
- func (m *KStats) XXX_Size() int
- func (m *KStats) XXX_Unmarshal(b []byte) error
- type KV
- type KVStore
- func (kv *KVStore) AddValueChanWorker()
- func (kv *KVStore) AddValueToChannel(key []byte, newVal []byte, unique bool)
- func (kv *KVStore) Close()
- func (kv *KVStore) CloseInsertChannel()
- func (kv *KVStore) Flush()
- func (kv *KVStore) GarbageCollect(count int, ratio float64)
- func (kv *KVStore) GetValue(key []byte) ([]byte, bool)
- func (kv *KVStore) GetValueFromBadger(key []byte) ([]byte, error)
- func (kv *KVStore) GetValues(key []byte) ([][]byte, error)
- func (kv *KVStore) MergeCombinationKeys(combKeys [][]byte, threadId int) []byte
- func (kv *KVStore) OpenInsertChannel()
- func (kv *KVStore) UpdateValue(key []byte, val []byte)
- type KVStores
- type KVsToMerge
- type K_
- type P_
- type Protein
- func (*Protein) Descriptor() ([]byte, []int)
- func (m *Protein) GetEntryId() string
- func (m *Protein) GetFeatures() map[string]string
- func (m *Protein) GetLength() int32
- func (m *Protein) GetSequence() string
- func (*Protein) ProtoMessage()
- func (m *Protein) Reset()
- func (m *Protein) String() string
- func (m *Protein) XXX_DiscardUnknown()
- func (m *Protein) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Protein) XXX_Merge(src proto.Message)
- func (m *Protein) XXX_Size() int
- func (m *Protein) XXX_Unmarshal(b []byte) error
- type TxBatch
Constants ¶
View Source
const ( MaxTableSize = 768 << 20 MaxValueLogFileSize = 2048 << 10 MaxValueLogEntries = 100000000 )
Variables ¶
This section is empty.
Functions ¶
func NewKVStore ¶
func RemoveDuplicatesFromSlice ¶
Utility functions
func SplitHashValue ¶
Types ¶
type KComb ¶
type KComb struct { ProteinKeys []uint32 `protobuf:"varint,1,rep,packed,name=ProteinKeys,proto3" json:"ProteinKeys,omitempty"` Count uint32 `protobuf:"varint,2,opt,name=Count,proto3" json:"Count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KComb) Descriptor ¶
func (*KComb) GetProteinKeys ¶
func (*KComb) ProtoMessage ¶
func (*KComb) ProtoMessage()
func (*KComb) XXX_DiscardUnknown ¶
func (m *KComb) XXX_DiscardUnknown()
func (*KComb) XXX_Marshal ¶
func (*KComb) XXX_Unmarshal ¶
type KSettings ¶
type KSettings struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Port int32 `protobuf:"varint,2,opt,name=Port,proto3" json:"Port,omitempty"` CreationDate string `protobuf:"bytes,3,opt,name=CreationDate,proto3" json:"CreationDate,omitempty"` OriginalFile string `protobuf:"bytes,4,opt,name=OriginalFile,proto3" json:"OriginalFile,omitempty"` DatabaseIndexed bool `protobuf:"varint,5,opt,name=DatabaseIndexed,proto3" json:"DatabaseIndexed,omitempty"` IDsIndexed bool `protobuf:"varint,6,opt,name=IDsIndexed,proto3" json:"IDsIndexed,omitempty"` NamesIndexed bool `protobuf:"varint,7,opt,name=NamesIndexed,proto3" json:"NamesIndexed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KSettings) Descriptor ¶
func (*KSettings) GetCreationDate ¶
func (*KSettings) GetDatabaseIndexed ¶
func (*KSettings) GetIDsIndexed ¶
func (*KSettings) GetNamesIndexed ¶
func (*KSettings) GetOriginalFile ¶
func (*KSettings) ProtoMessage ¶
func (*KSettings) ProtoMessage()
func (*KSettings) XXX_DiscardUnknown ¶
func (m *KSettings) XXX_DiscardUnknown()
func (*KSettings) XXX_Marshal ¶
func (*KSettings) XXX_Unmarshal ¶
type KStats ¶
type KStats struct { NumberOfProteins uint64 `protobuf:"varint,1,opt,name=NumberOfProteins,proto3" json:"NumberOfProteins,omitempty"` NumberOfAA uint64 `protobuf:"varint,2,opt,name=NumberOfAA,proto3" json:"NumberOfAA,omitempty"` NumberOfKmers uint64 `protobuf:"varint,4,opt,name=NumberOfKmers,proto3" json:"NumberOfKmers,omitempty"` NumberOfKCombSets uint64 `protobuf:"varint,5,opt,name=NumberOfKCombSets,proto3" json:"NumberOfKCombSets,omitempty"` Features []string `protobuf:"bytes,6,rep,name=Features,proto3" json:"Features,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KStats) Descriptor ¶
func (*KStats) GetFeatures ¶
func (*KStats) GetNumberOfAA ¶
func (*KStats) GetNumberOfKCombSets ¶
func (*KStats) GetNumberOfKmers ¶
func (*KStats) GetNumberOfProteins ¶
func (*KStats) ProtoMessage ¶
func (*KStats) ProtoMessage()
func (*KStats) XXX_DiscardUnknown ¶
func (m *KStats) XXX_DiscardUnknown()
func (*KStats) XXX_Marshal ¶
func (*KStats) XXX_Unmarshal ¶
type KVStore ¶
type KVStore struct { DB *badger.DB TxBatchChannel []TxBatch TxBatchChannelWG *sync.WaitGroup TxBatchChannelJobs chan KV BatchCounter uint64 NbOfThreads int FlushSize int NilVal []byte Mu sync.Mutex }
Key Value Store
func (*KVStore) AddValueChanWorker ¶
func (kv *KVStore) AddValueChanWorker()
func (*KVStore) AddValueToChannel ¶
func (*KVStore) CloseInsertChannel ¶
func (kv *KVStore) CloseInsertChannel()
func (*KVStore) GarbageCollect ¶
func (*KVStore) GetValueFromBadger ¶
func (*KVStore) MergeCombinationKeys ¶
func (*KVStore) OpenInsertChannel ¶
func (kv *KVStore) OpenInsertChannel()
OpenInsertChannell Open a channel to concurrently do batch insert in the store
func (*KVStore) UpdateValue ¶
type KVStores ¶
func KVStoresNew ¶
func (*KVStores) CloseInsertChannel ¶
func (kvStores *KVStores) CloseInsertChannel()
func (*KVStores) OpenInsertChannel ¶
func (kvStores *KVStores) OpenInsertChannel()
type KVsToMerge ¶
type K_ ¶
type K_ struct { *KVStore // contains filtered or unexported fields }
Kmer Entries
func (*K_) CreateBytesKey ¶
func (*K_) CreateBytesVal ¶
func (*K_) EncodeEntry ¶
type Protein ¶
type Protein struct { EntryId string `protobuf:"bytes,1,opt,name=EntryId,proto3" json:"EntryId,omitempty"` Sequence string `protobuf:"bytes,2,opt,name=Sequence,proto3" json:"Sequence,omitempty"` Length int32 `protobuf:"varint,3,opt,name=Length,proto3" json:"Length,omitempty"` Features map[string]string `` /* 157-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Protein) Descriptor ¶
func (*Protein) GetEntryId ¶
func (*Protein) GetFeatures ¶
func (*Protein) GetSequence ¶
func (*Protein) ProtoMessage ¶
func (*Protein) ProtoMessage()
func (*Protein) XXX_DiscardUnknown ¶
func (m *Protein) XXX_DiscardUnknown()
func (*Protein) XXX_Marshal ¶
func (*Protein) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.