Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SegmentMap ¶
type SegmentMap struct {
// contains filtered or unexported fields
}
SegmentMap is used for handle a big map slice by slice. It's not thread safe.
func NewSegmentMap ¶
func NewSegmentMap(size int64) (*SegmentMap, error)
NewSegmentMap create a new SegmentMap.
func (*SegmentMap) Get ¶
func (sm *SegmentMap) Get(key []byte) (interface{}, bool)
Get is the same as map[k].
func (*SegmentMap) GetSegment ¶
func (sm *SegmentMap) GetSegment(index int64) (map[string]interface{}, error)
GetSegment gets the map specific by index.
func (*SegmentMap) SegmentCount ¶
func (sm *SegmentMap) SegmentCount() int64
SegmentCount returns how many inner segments.
Click to show internal directories.
Click to hide internal directories.