19 package org.sleuthkit.autopsy.datasourcesummary.datamodel;
 
   21 import java.util.ArrayList;
 
   22 import java.util.Collections;
 
   23 import java.util.HashSet;
 
   24 import java.util.List;
 
   27 import java.util.function.Function;
 
   28 import java.util.stream.Collectors;
 
   29 import org.apache.commons.lang3.StringUtils;
 
   30 import org.apache.commons.lang3.tuple.Pair;
 
   94                 .filter((pair) -> pair != null && pair.getKey() != null && !EXCLUDED_KEYWORD_SEARCH_ITEMS.contains(pair.getKey().toUpperCase().trim()))
 
   95                 .collect(Collectors.toList());
 
  113     @SuppressWarnings(
"deprecation")
 
  135         if (dataSource == null) {
 
  136             return Collections.emptyList();
 
  139         List<BlackboardArtifact> artifacts = 
new ArrayList<>();
 
  144             artifacts.addAll(skCase.getBlackboard().getArtifacts(type.getTypeID(), dataSource.
getId()));
 
  148         Map<String, Long> countedKeys = artifacts.stream()
 
  151                     return (StringUtils.isBlank(key)) ? null : key;
 
  153                 .filter((key) -> key != null)
 
  154                 .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
 
  157         return countedKeys.entrySet().stream()
 
  158                 .map((e) -> Pair.of(e.getKey(), e.getValue()))
 
  159                 .sorted((a, b) -> -a.getValue().compareTo(b.getValue()))
 
  160                 .collect(Collectors.toList());
 
TSK_INTERESTING_ARTIFACT_HIT
 
List< Pair< String, Long > > getInterestingItemCounts(DataSource dataSource)
 
SleuthkitCaseProvider DEFAULT
 
List< Pair< String, Long > > getCountsData(DataSource dataSource, BlackboardAttribute.Type keyType, ARTIFACT_TYPE...artifactTypes)
 
static final Set< String > EXCLUDED_KEYWORD_SEARCH_ITEMS
 
final SleuthkitCaseProvider provider
 
AnalysisSummary(SleuthkitCaseProvider provider)
 
List< Pair< String, Long > > getHashsetCounts(DataSource dataSource)
 
static final BlackboardAttribute.Type TYPE_SET_NAME
 
List< Pair< String, Long > > getKeywordCounts(DataSource dataSource)
 
static String getStringOrNull(BlackboardArtifact artifact, Type attributeType)