Documentation ¶
Index ¶
- type KVChecksum
- func (c *KVChecksum) Add(other *KVChecksum)
- func (c KVChecksum) MarshalJSON() ([]byte, error)
- func (c *KVChecksum) MarshalLogObject(encoder zapcore.ObjectEncoder) error
- func (c *KVChecksum) Sum() uint64
- func (c *KVChecksum) SumKVS() uint64
- func (c *KVChecksum) SumSize() uint64
- func (c *KVChecksum) Update(kvs []common.KvPair)
- func (c *KVChecksum) UpdateOne(kv common.KvPair)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVChecksum ¶
type KVChecksum struct {
// contains filtered or unexported fields
}
func MakeKVChecksum ¶
func MakeKVChecksum(bytes uint64, kvs uint64, checksum uint64) KVChecksum
func NewKVChecksum ¶
func NewKVChecksum(checksum uint64) *KVChecksum
func (*KVChecksum) Add ¶
func (c *KVChecksum) Add(other *KVChecksum)
func (KVChecksum) MarshalJSON ¶
func (c KVChecksum) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*KVChecksum) MarshalLogObject ¶
func (c *KVChecksum) MarshalLogObject(encoder zapcore.ObjectEncoder) error
MarshalLogObject implements the zapcore.ObjectMarshaler interface.
func (*KVChecksum) Sum ¶
func (c *KVChecksum) Sum() uint64
func (*KVChecksum) SumKVS ¶
func (c *KVChecksum) SumKVS() uint64
func (*KVChecksum) SumSize ¶
func (c *KVChecksum) SumSize() uint64
func (*KVChecksum) Update ¶
func (c *KVChecksum) Update(kvs []common.KvPair)
func (*KVChecksum) UpdateOne ¶
func (c *KVChecksum) UpdateOne(kv common.KvPair)
Click to show internal directories.
Click to hide internal directories.