19 package org.sleuthkit.autopsy.timeline.utils;
21 import java.util.ArrayList;
22 import java.util.Collections;
23 import java.util.List;
24 import static org.apache.commons.lang3.StringUtils.isBlank;
57 return (sleuthkitCase.getDatabaseType() == TskData.DbType.POSTGRESQL ?
"string_agg" :
"group_concat")
58 +
"(Cast (" + columnName +
" AS VARCHAR) , ',')";
79 if (isBlank(groupConcat)) {
80 return Collections.emptyList();
83 List<X> result =
new ArrayList<>();
84 for (String s : groupConcat.split(
",")) {
85 result.add(mapper.apply(s));
static< X > List< X > unGroupConcat(String groupConcat, CheckedFunction< String, X, TskCoreException > mapper)
String csvAggFunction(String columnName)
TimelineDBUtils(SleuthkitCase sleuthkitCase)
final SleuthkitCase sleuthkitCase