mirror of
https://github.com/chrislusf/seaweedfs
synced 2025-07-11 06:02:47 +02:00
* listing files to convert to parquet * write parquet files * save logs into parquet files * pass by value * compact logs into parquet format * can skip existing files * refactor * refactor * fix compilation * when no partition found * refactor * add untested parquet file read * rename package * refactor * rename files * remove unused * add merged log read func * parquet wants to know the file size * rewind by time * pass in stop ts * add stop ts * adjust log * minor * adjust log * skip .parquet files when reading message logs * skip non message files * Update subscriber_record.go * send messages * skip message data with only ts * skip non log files * update parquet-go package * ensure a valid record type * add new field to a record type * Update read_parquet_to_log.go * fix parquet file name generation * separating reading parquet and logs * add key field * add skipped logs * use in memory cache * refactor * refactor * refactor * refactor, and change compact log * refactor * rename * refactor * fix format * prefix v to version directory
25 lines
636 B
Go
25 lines
636 B
Go
package sub_coordinator
|
|
|
|
import "time"
|
|
|
|
type PartitionSlotToConsumerInstance struct {
|
|
RangeStart int32
|
|
RangeStop int32
|
|
UnixTimeNs int64
|
|
Broker string
|
|
AssignedInstanceId ConsumerGroupInstanceId
|
|
FollowerBroker string
|
|
}
|
|
|
|
type PartitionSlotToConsumerInstanceList struct {
|
|
PartitionSlots []*PartitionSlotToConsumerInstance
|
|
RingSize int32
|
|
Version int64
|
|
}
|
|
|
|
func NewPartitionSlotToConsumerInstanceList(ringSize int32, version time.Time) *PartitionSlotToConsumerInstanceList {
|
|
return &PartitionSlotToConsumerInstanceList{
|
|
RingSize: ringSize,
|
|
Version: version.UnixNano(),
|
|
}
|
|
}
|