Tabnine Logo
ResourceDictionaries.getMetricDictionary
Code IndexAdd Tabnine to your IDE (free)

How to use
getMetricDictionary
method
in
com.yahoo.bard.webservice.data.config.ResourceDictionaries

Best Java code snippets using com.yahoo.bard.webservice.data.config.ResourceDictionaries.getMetricDictionary (Showing top 7 results out of 315)

origin: yahoo/fili

public MetricDictionary getMetricDictionary() {
  return dictionaries.getMetricDictionary();
}
origin: yahoo/fili

/**
 * The dictionary of configured metrics.
 *
 * @return A metric dictionary.
 */
default MetricDictionary getMetricDictionary() {
  return getResourceDictionaries().getMetricDictionary();
}
origin: yahoo/fili

/**
 * Load several logical tables into the logicalDictionary, all with the globally-scoped metric dictionary.
 * <p>
 * Note: This builds the logical tables as well.
 *
 * @param nameGroupMap  A map of logical table name to table group information
 * @param validGrains  The accepted grains for the logical table
 * @param dictionaries  The resource dictionaries for reading and storing configuration
 */
public void loadLogicalTablesWithGranularities(
    Map<String, TableGroup> nameGroupMap,
    Set<? extends Granularity> validGrains,
    ResourceDictionaries dictionaries
) {
  loadLogicalTablesWithGranularities(
      nameGroupMap,
      validGrains,
      dictionaries.getLogicalDictionary(),
      nameGroupMap.keySet().stream()
          .collect(Collectors.toMap(Function.identity(), i -> dictionaries.getMetricDictionary()))
  );
}
origin: yahoo/fili

/**
 * Load a logical table into the logicalDictionary.
 * <p>
 * Note: This builds the logical table as well.
 *
 * @param logicalTableName  The logical table name
 * @param nameGroup  The table group information for the logical table
 * @param validGrains  The accepted grains for the logical table
 * @param dictionaries  The resource dictionaries for reading and storing configuration
 */
public void loadLogicalTableWithGranularities(
    String logicalTableName,
    TableGroup nameGroup,
    Set<? extends Granularity> validGrains,
    ResourceDictionaries dictionaries
) {
  loadLogicalTableWithGranularities(
      logicalTableName,
      nameGroup,
      validGrains,
      dictionaries.getLogicalDictionary(),
      dictionaries.getMetricDictionary()
  );
}
origin: yahoo/fili

/**
 * Load the Dimensions, Metrics, and Tables.
 */
public void load() {
  dimensionLoader.loadDimensionDictionary(dictionaries.getDimensionDictionary());
  // metric loader might dependent on dimension dictionary, so load dimension first
  metricLoader.loadMetricDictionary(dictionaries.getMetricDictionary(), dictionaries.getDimensionDictionary());
  tableLoader.loadTableDictionary(dictionaries);
  LOG.info("Initialized ConfigurationLoader");
  LOG.info(dictionaries.toString());
}
origin: com.yahoo.fili/fili-core

MetricDictionary metricDictionary = dictionaries.getMetricDictionary();
LogicalTableDictionary tableDictionary = dictionaries.getLogicalDictionary();
loadLogicalTablesWithGranularities(
origin: yahoo/fili

MetricDictionary metricDictionary = dictionaries.getMetricDictionary();
LogicalTableDictionary tableDictionary = dictionaries.getLogicalDictionary();
loadLogicalTablesWithGranularities(
com.yahoo.bard.webservice.data.configResourceDictionariesgetMetricDictionary

Popular methods of ResourceDictionaries

  • getDimensionDictionary
  • getLogicalDictionary
  • getPhysicalDictionary
  • toString

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Collectors (java.util.stream)
  • CodeWhisperer alternatives
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