Skip to main content

datafusion_doc/
udaf.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
3// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
4
5// Aggregate UDF doc sections for use in public documentation
6pub mod aggregate_doc_sections {
7    use crate::DocSection;
8
9    pub fn doc_sections() -> Vec<DocSection> {
10        vec![
11            DOC_SECTION_GENERAL,
12            DOC_SECTION_STATISTICAL,
13            DOC_SECTION_APPROXIMATE,
14        ]
15    }
16
17    pub const DOC_SECTION_GENERAL: DocSection = DocSection {
18        include: true,
19        label: "General Functions",
20        description: None,
21    };
22
23    pub const DOC_SECTION_STATISTICAL: DocSection = DocSection {
24        include: true,
25        label: "Statistical Functions",
26        description: None,
27    };
28
29    pub const DOC_SECTION_APPROXIMATE: DocSection = DocSection {
30        include: true,
31        label: "Approximate Functions",
32        description: None,
33    };
34}