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

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

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

origin: yahoo/fili

public DimensionDictionary getDimensionDictionary() {
  return dictionaries.getDimensionDictionary();
}
origin: yahoo/fili

/**
 * The dictionary of configured dimensions.
 *
 * @return A dictionary of dimensions
 */
default DimensionDictionary getDimensionDictionary() {
  return getResourceDictionaries().getDimensionDictionary();
}
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: yahoo/fili

@Override
public ConfigPhysicalTable build(ResourceDictionaries dictionaries, DataSourceMetadataService metadataService) {
  try {
    Map<ConfigPhysicalTable, Set<String>> tableMetricNamesMap = getTableToMetricsMap(dictionaries);
    validateDependentMetrics(tableMetricNamesMap);
    return new BaseCompositePhysicalTable(
        getName(),
        getTimeGrain(),
        buildColumns(dictionaries.getDimensionDictionary()),
        tableMetricNamesMap.keySet(),
        getLogicalToPhysicalNames(),
        MetricUnionAvailability.build(
            tableMetricNamesMap.keySet(), tableMetricNamesMap.entrySet().stream()
                .collect(Collectors.toMap(
                    entry -> entry.getKey().getAvailability(),
                    Map.Entry::getValue
                )))
    );
  } catch (IllegalArgumentException e) {
    String message = String.format(VALIDATION_ERROR_FORMAT, e.getMessage());
    LOG.error(message);
    throw new IllegalArgumentException(message);
  }
}
origin: yahoo/fili

Set<Column> columns = buildColumns(dictionaries.getDimensionDictionary());
Set<String> metricNames = Utils.getSubsetByType(columns, MetricColumn.class).stream()
    .map(MetricColumn::getName)
origin: yahoo/fili

@Override
public ConfigPhysicalTable build(ResourceDictionaries dictionaries, DataSourceMetadataService metadataService) {
  Map<ConfigPhysicalTable, DataSourceFilter> availabilityFilters = tablePartDefinitions.entrySet().stream()
      .collect(Collectors.toMap(
          entry -> dictionaries.getPhysicalDictionary().get(entry.getKey().asName()),
          entry -> new DimensionIdFilter(toDimensionValuesMap(
              entry.getValue(),
              dictionaries.getDimensionDictionary()
          ))
      ));
  return new BaseCompositePhysicalTable(
      getName(),
      getTimeGrain(),
      buildColumns(dictionaries.getDimensionDictionary()),
      availabilityFilters.keySet(),
      getLogicalToPhysicalNames(),
      PartitionAvailability.build(availabilityFilters)
  );
}
origin: yahoo/fili

  @Override
  public ConfigPhysicalTable build(
      ResourceDictionaries dictionaries,
      DataSourceMetadataService metadataService
  ) {
    return new PermissivePhysicalTable(
        getName(),
        getTimeGrain(),
        buildColumns(dictionaries.getDimensionDictionary()),
        getLogicalToPhysicalNames(),
        metadataService
    );
  }
}
origin: yahoo/fili

  @Override
  public ConfigPhysicalTable build(ResourceDictionaries dictionaries, DataSourceMetadataService metadataService) {
    return new StrictPhysicalTable(
        getName(),
        getTimeGrain(),
        buildColumns(dictionaries.getDimensionDictionary()),
        getLogicalToPhysicalNames(),
        metadataService,
        getExpectedStartDate(),
        getExpectedEndDate()
    );
  }
}
origin: yahoo/fili

@Override
public ConfigPhysicalTable build(ResourceDictionaries dictionaries, DataSourceMetadataService metadataService) {
  return new SqlPhysicalTable(
      getName(),
      getTimeGrain(),
      buildColumns(dictionaries.getDimensionDictionary()),
      getLogicalToPhysicalNames(),
      new EternalAvailability(DataSourceName.of(getName().asName()), metadataService),
      schemaName,
      timestampColumn
  );
}
com.yahoo.bard.webservice.data.configResourceDictionariesgetDimensionDictionary

Popular methods of ResourceDictionaries

  • getLogicalDictionary
  • getMetricDictionary
  • getPhysicalDictionary
  • toString

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • From CI to AI: The AI layer in your organization
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