Class ParseRegion.RegionAndSource

java.lang.Object
org.olap4j.mdx.ParseRegion.RegionAndSource
Enclosing class:
ParseRegion

public static class ParseRegion.RegionAndSource extends Object
Combination of a region within an MDX statement with the source text of the whole MDX statement.

Useful for reporting errors. For example, the error in the statement

 SELECT {[Measures].[Units In Stock]} ON COLUMNS
 FROM [Sales]
 
has source "SELECT {[Measures].[Units In Stock]} ON COLUMNS\nFROM [Sales]" and region [1:9, 1:34].
  • Field Details

  • Constructor Details

    • RegionAndSource

      public RegionAndSource(String source, ParseRegion region)
      Creates a RegionAndSource.
      Parameters:
      source - Source MDX code
      region - Coordinates of region within MDX code