Documentation ¶
Index ¶
- Variables
- type Store
- func (s *Store) Check() validation.ErrorGroup
- func (*Store) Generate(rand *rand.Rand, size int) reflect.Value
- func (s *Store) Put(tp topic_partition.TopicPartition, offset offset.Offset) error
- func (s *Store) PutParts(topic_ string, partition_ int32, offset_ int64) error
- func (s *Store) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStoreMapIsNil = validation.NewError(
"offset_store_map_is_nil",
"the offset store map must be allocated",
)
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store holds mapping between topic partitions and offsets.
This is used to track highest/most-recent offsets for each topic partition as the flow through the system.
func (*Store) Check ¶
func (s *Store) Check() validation.ErrorGroup
Check runs default validation checks for the store.
func (*Store) Put ¶
func (s *Store) Put(tp topic_partition.TopicPartition, offset offset.Offset) error
Put stores topic partition -> offset.
Click to show internal directories.
Click to hide internal directories.