Tabnine Logo
StatDetails.add
Code IndexAdd Tabnine to your IDE (free)

How to use
add
method
in
com.github.endoscope.storage.StatDetails

Best Java code snippets using com.github.endoscope.storage.StatDetails.add (Showing top 4 results out of 315)

origin: com.github.endoscope/endoscope-storage-gzip

@Override
public StatDetails loadDetails(String detailsId, List<String> statsIds){
  StatDetails result = new StatDetails(detailsId, null);
  processStats(statsIds, stats -> {
    Stat stat = getDetailsOrEmpty(detailsId, stats);
    result.add(stat);
  });
  return result;
}
origin: com.github.endoscope/endoscope-storage-jdbc

protected StatDetails createDetails(String detailsId, List<GroupEntity> groups, List<StatEntity> stats) {
  StatDetails result = new StatDetails(detailsId, null);
  result.setInfo(storageInfo(null));
  groups.forEach( group -> {
    List<StatEntity> groupStats = stats.stream()
        .filter( s -> group.getId().equals(s.getGroupId()) )
        .collect(toList());
    restoreGroupStats(group, groupStats);
    Stat details = group.getMap().get(detailsId);
    result.add(details);
  });
  if( result.getMerged() == null ){
    result.setMerged(Stat.emptyStat());
  }
  return result;
}
origin: com.github.endoscope/storage-gzip

@Override
public StatDetails stat(String id, Date from, Date to, String appGroup, String appType) {
  log.debug("Searching for stat {} from {} to {}", id, getDateFormat().format(from), getDateFormat().format(to));
  StatDetails result = new StatDetails(id, null);
  listParts().stream()
      .peek( fileInfo -> log.debug("Checking {}", fileInfo.getName()))
      .filter(fileInfo -> fileInfo.inRange(from, to))
      .peek( fileInfo -> log.debug("Matches: {}", fileInfo.getName()))
      .forEach( fileInfo -> {
        Stats stats = load(fileInfo.getName());
        Stat details = stats.getMap().get(id);
        result.add(details, stats.getStartDate(), stats.getEndDate());
      });
  if( result.getMerged() == null ){
    result.setMerged(Stat.emptyStat());
  }
  return result;
}
origin: com.github.endoscope/storage-jdbc

@Override
public StatDetails stat(String rootName, Date from, Date to, String appGroup, String appType) {
  StatDetails result = new StatDetails(rootName, null);
  List<GroupEntity> groups = findGroupsInRange(from, to, appGroup, appType);
  loadTree(groups, rootName, from, to, appGroup, appType);
  groups.forEach(g -> {
    Stat details = g.getMap().get(rootName);
    result.add(details, g.getStartDate(),g.getEndDate());
  });
  if( result.getMerged() == null ){
    result.setMerged(Stat.emptyStat());
  }
  return result;
}
com.github.endoscope.storageStatDetailsadd

Popular methods of StatDetails

  • getMerged
  • <init>
  • setMerged
  • setInfo
    Implementation specific information.
  • getHistogram
  • getId
  • getInfo
    Implementation specific information.

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now