mirror of https://github.com/milvus-io/milvus.git
30 lines
545 B
Go
30 lines
545 B
Go
package planner
|
|
|
|
import "fmt"
|
|
|
|
type NodeLimitClause struct {
|
|
baseNode
|
|
Limit int64
|
|
Offset int64
|
|
}
|
|
|
|
func (n *NodeLimitClause) String() string {
|
|
return fmt.Sprintf("Offet: %d, Limit: %d", n.Offset, n.Limit)
|
|
}
|
|
|
|
func (n *NodeLimitClause) GetChildren() []Node {
|
|
return nil
|
|
}
|
|
|
|
func (n *NodeLimitClause) Accept(v Visitor) interface{} {
|
|
return v.VisitLimitClause(n)
|
|
}
|
|
|
|
func NewNodeLimitClause(text string, limit, offset int64) *NodeLimitClause {
|
|
return &NodeLimitClause{
|
|
baseNode: newBaseNode(text),
|
|
Limit: limit,
|
|
Offset: offset,
|
|
}
|
|
}
|