presto-main/src/main/java/io/prestosql/sql/planner/plan/LimitNode.java/LimitNode/LimitNode
class LimitNode:    @JsonCreator
    public LimitNode(
            @JsonProperty("id") PlanNodeId id,
            @JsonProperty("source") PlanNode source,
            @JsonProperty("count") long count,
            @JsonProperty("tiesResolvingScheme") Optional<OrderingScheme> tiesResolvingScheme,
            @JsonProperty("partial") boolean partial)
    {
        super(id);
        this.partial = partial;

        requireNonNull(source, "source is null");
        checkArgument(count >= 0, "count must be greater than or equal to zero");
        requireNonNull(tiesResolvingScheme, "tiesResolvingScheme is null");

        this.source = source;
        this.count = count;
        this.tiesResolvingScheme = tiesResolvingScheme;
    }