Autopsy  4.14.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 TimelineDBUtils.java.

Constructor & Destructor Documentation

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

Create a TimelineDBUtils for the givecn SleuthlitCase.

Parameters
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 TimelineDBUtils.java.

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.

Parameters
columnName
Returns
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 TimelineDBUtils.java.

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

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

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

Definition at line 77 of file TimelineDBUtils.java.

Member Data Documentation

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

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

Copyright © 2012-2020 Basis Technology. Generated on: Wed Apr 8 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.