Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
org.sleuthkit.autopsy.timeline.utils.TimelineDBUtils Class Reference

Public Member Functions

 TimelineDBUtils (SleuthkitCase sleuthkitCase)
String csvAggFunction (String columnName)

Static Public Member Functions

static< X > List< X > unGroupConcat (String groupConcat, CheckedFunction< String, X, TskCoreException > mapper) throws TskCoreException

Private Attributes

final SleuthkitCase sleuthkitCase

Detailed Description

Utilities to help work with databases.

Definition at line 32 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.timeline.utils.TimelineDBUtils.TimelineDBUtils ( SleuthkitCase  sleuthkitCase)

Create a TimelineDBUtils for the givecn SleuthlitCase.

sleuthkitCaseThe case to make utilities for. The type of the underlying database is used in the implementation of these utilities.

Definition at line 43 of file

References org.sleuthkit.autopsy.timeline.utils.TimelineDBUtils.sleuthkitCase.

Member Function Documentation

String org.sleuthkit.autopsy.timeline.utils.TimelineDBUtils.csvAggFunction ( String  columnName)

Wrap the given columnName in the appropiate sql function to get a comma seperated list in the result.

An sql expression that will produce a comma seperated list of values from the given column in the result.

Definition at line 56 of file

static <X> List<X> org.sleuthkit.autopsy.timeline.utils.TimelineDBUtils.unGroupConcat ( String  groupConcat,
CheckedFunction< String, X, TskCoreException >  mapper 
) throws TskCoreException

Take the result of a group_concat / string_agg sql operation and split it into a set of X using the mapper to convert from string to X. If groupConcat is empty, null, or all whitespace, returns an empty list.

X the type of elements to return

groupConcata string containing the group_concat result ( a comma separated list)
mappera function from String to X
a Set of X, each element mapped from one element of the original comma delimited string
org.sleuthkit.datamodel.TskCoreExceptionIf the mapper throws a TskCoreException

Definition at line 77 of file

Member Data Documentation

final SleuthkitCase org.sleuthkit.autopsy.timeline.utils.TimelineDBUtils.sleuthkitCase

The documentation for this class was generated from the following file:

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.