/// Groupby grok patterns on TEST MODE
Groupby grok patterns on TEST MODE
Groupby grok patterns on TEST MODE
pub fn group_grok_old<'a>(group_indexes: &[String], data: ManyRecordsType) -> GroupedRecordsType {
    let mut results = HashMap::new();
    for (k, group) in &data.into_iter().group_by(|rec| get_group_keys(&group_indexes, rec)) {
        results.insert(k, group.collect::<Vec<_>>());
    }
    results
}
pub fn group_grok_old < ' a > ( group_indexes : & [ String ] , data : ManyRecordsType ) -> GroupedRecordsType { let mut results = HashMap :: new ( ) ; for ( k , group ) in & data . into_iter ( ) . group_by ( | rec | get_group_keys ( & group_indexes , rec ) ) { results . insert ( k , group . collect :: < Vec < _ > > ( ) ) ; } results }
Groupby grok patterns on TEST MODE
Groupby grok patterns on TEST MODE
group_indexes
&[String]
data
ManyRecordsType