|
|
|
@@ -191,13 +191,9 @@ func NewToShardStore(space jcstypes.UserSpaceDetail, strIdx StreamIndex, retStor |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func NewToShardStoreWithRange(space jcstypes.UserSpaceDetail, streamIndex StreamIndex, retStoreKey string, rng math2.Range) *ToShardStore { |
|
|
|
return &ToShardStore{ |
|
|
|
UserSpace: space, |
|
|
|
StreamIndex: streamIndex, |
|
|
|
ResultStoreKey: retStoreKey, |
|
|
|
Range: rng, |
|
|
|
} |
|
|
|
func (t *ToShardStore) WithRange(rng math2.Range) *ToShardStore { |
|
|
|
t.Range = rng |
|
|
|
return t |
|
|
|
} |
|
|
|
|
|
|
|
func (t *ToShardStore) GetStreamIndex() StreamIndex { |
|
|
|
@@ -212,6 +208,7 @@ type ToBaseStore struct { |
|
|
|
UserSpace jcstypes.UserSpaceDetail |
|
|
|
ObjectPath jcstypes.JPath |
|
|
|
Option stgtypes.WriteOption |
|
|
|
Range math2.Range |
|
|
|
} |
|
|
|
|
|
|
|
func NewToBaseStore(space jcstypes.UserSpaceDetail, objectPath jcstypes.JPath) *ToBaseStore { |
|
|
|
@@ -221,6 +218,11 @@ func NewToBaseStore(space jcstypes.UserSpaceDetail, objectPath jcstypes.JPath) * |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func (t *ToBaseStore) WithRange(rng math2.Range) *ToBaseStore { |
|
|
|
t.Range = rng |
|
|
|
return t |
|
|
|
} |
|
|
|
|
|
|
|
func (t *ToBaseStore) GetStreamIndex() StreamIndex { |
|
|
|
return StreamIndex{ |
|
|
|
Type: StreamIndexRaw, |
|
|
|
@@ -228,5 +230,5 @@ func (t *ToBaseStore) GetStreamIndex() StreamIndex { |
|
|
|
} |
|
|
|
|
|
|
|
func (t *ToBaseStore) GetRange() math2.Range { |
|
|
|
return math2.Range{} |
|
|
|
return t.Range |
|
|
|
} |