Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-plan/src/constants.rs
8430 views
1
use polars_utils::pl_str::PlSmallStr;
2
3
pub const CSE_REPLACED: &str = "__POLARS_CSER_";
4
pub const POLARS_TMP_PREFIX: &str = "_POLARS_";
5
pub const POLARS_PLACEHOLDER: &str = "_POLARS_<>";
6
pub const POLARS_ELEMENT: &str = "__PL_ELEMENT";
7
pub const POLARS_STRUCTFIELDS: &str = "__PL_STRUCTFIELDS";
8
pub const LEN: &str = "len";
9
10
const LITERAL_NAME: PlSmallStr = PlSmallStr::from_static("literal");
11
const LEN_NAME: PlSmallStr = PlSmallStr::from_static(LEN);
12
const PL_ELEMENT_NAME: PlSmallStr = PlSmallStr::from_static(POLARS_ELEMENT);
13
const PL_STRUCTFIELDS_NAME: PlSmallStr = PlSmallStr::from_static(POLARS_STRUCTFIELDS);
14
15
pub fn get_literal_name() -> PlSmallStr {
16
LITERAL_NAME.clone()
17
}
18
19
pub(crate) fn get_len_name() -> PlSmallStr {
20
LEN_NAME.clone()
21
}
22
23
pub fn get_pl_element_name() -> PlSmallStr {
24
PL_ELEMENT_NAME.clone()
25
}
26
27
pub fn get_pl_structfields_name() -> PlSmallStr {
28
PL_STRUCTFIELDS_NAME.clone()
29
}
30
31