refactor: update partition handling to use Range struct for better clarity and consistency
This commit is contained in:
@@ -11,12 +11,17 @@ type Batch struct {
|
||||
RetryCounter int
|
||||
}
|
||||
|
||||
type Partition struct {
|
||||
Id uuid.UUID
|
||||
ParentId uuid.UUID
|
||||
LowerLimit int64
|
||||
UpperLimit int64
|
||||
IsLowerLimitInclusive bool
|
||||
ShouldUseRange bool
|
||||
RetryCounter int
|
||||
type PartitionRange struct {
|
||||
Min int64
|
||||
Max int64
|
||||
IsMinInclusive bool
|
||||
IsMaxInclusive bool
|
||||
}
|
||||
|
||||
type Partition struct {
|
||||
Id uuid.UUID
|
||||
ParentId uuid.UUID
|
||||
Range PartitionRange
|
||||
HasRange bool
|
||||
RetryCounter int
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user