MCPcopy Create free account
hub / github.com/distributedio/titan / getLimitParameters

Function getLimitParameters

command/common.go:245–262  ·  view source on GitHub ↗
(offsetCount []string)

Source from the content-addressed store, hash-verified

243}
244
245func getLimitParameters(offsetCount []string) (int64, int64, error) {
246 if len(offsetCount) < 2 {
247 return 0, 0, ErrSyntax
248 }
249 var offset, count, tmp int64
250 var err error
251 for i := 0; i < 2; i++ {
252 if tmp, err = strconv.ParseInt(offsetCount[i], 10, 64); err != nil {
253 return offset, count, ErrInteger
254 }
255 if i == 0 {
256 offset = tmp
257 } else {
258 count = tmp
259 }
260 }
261 return offset, count, nil
262}

Callers 1

zAnyOrderRangeByScoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected