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

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

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

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/endoscope-ui-plugin

private StatDetails detailsForRange(String id, TimeRange range) {
  StatDetails result;
  if( canSearch(range) ){
    result = getStorage().loadDetails(id, range.getFromDate(), range.getToDate(), range.getInstance(), range.getType());
    if( inMemoryInRange(range) ){
      StatDetails current = detailsInMemory(id);
      if( current != null ){
        //we don't want to merge not set stats as it would reset min value to 0
        result.getMerged().merge(current.getMerged(), true);
      }
      result.setInfo("Added in-memory data. Original info: " + result.getInfo());
    }
  } else {
    result = detailsInMemory(id);
    result.setInfo("in-memory data only. Original info: " + result.getInfo());
  }
  return (result != null) ? result : new StatDetails(id, Stat.emptyStat());
}
com.github.endoscope.storageStatDetailssetInfo

Javadoc

Implementation specific information.

Popular methods of StatDetails

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

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top Vim plugins
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