Documentation ¶
Index ¶
- type AppendFile
- type DataSet
- type FixedSizeFileMap
- func (m *FixedSizeFileMap) Delete(slotIndex int) error
- func (m *FixedSizeFileMap) Read(slotIndex int) ([]byte, error)
- func (m *FixedSizeFileMap) SlotNum() int
- func (m *FixedSizeFileMap) SlotSize() int
- func (m *FixedSizeFileMap) SlotSnapshot() []byte
- func (m *FixedSizeFileMap) Write(slotIndex int, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppendFile ¶
type AppendFile struct {
// contains filtered or unexported fields
}
func NewAppendFile ¶
func NewAppendFile(logSize, step int, appendFile string) (*AppendFile, error)
func (*AppendFile) ApplyAddress ¶
func (a *AppendFile) ApplyAddress() (int64, error)
type DataSet ¶
type DataSet struct {
// contains filtered or unexported fields
}
func NewDataSet ¶
func NewDataSet(m *FixedSizeFileMap, a *AppendFile) *DataSet
type FixedSizeFileMap ¶
type FixedSizeFileMap struct {
// contains filtered or unexported fields
}
FixedSizeFileMap is a fixed size file map.
func NewFileMap ¶
func NewFileMap(slotNum, slotSize int, binlogFile string) (*FixedSizeFileMap, error)
NewFileMap creates a new FixedSizeFileMap.
func (*FixedSizeFileMap) Delete ¶
func (m *FixedSizeFileMap) Delete(slotIndex int) error
Delete deletes data of a slot.
slotIndex begin from 0,
func (*FixedSizeFileMap) Read ¶
func (m *FixedSizeFileMap) Read(slotIndex int) ([]byte, error)
Read reads slot data from binlog file.
func (*FixedSizeFileMap) SlotNum ¶
func (m *FixedSizeFileMap) SlotNum() int
func (*FixedSizeFileMap) SlotSize ¶
func (m *FixedSizeFileMap) SlotSize() int
func (*FixedSizeFileMap) SlotSnapshot ¶
func (m *FixedSizeFileMap) SlotSnapshot() []byte
Click to show internal directories.
Click to hide internal directories.