mondrianproperties.java
来自「数据仓库展示程序」· Java 代码 · 共 534 行 · 第 1/2 页
JAVA
534 行
*/
public final StringProperty FoodmartJdbcURL = new StringProperty(
this, "mondrian.foodmart.jdbcURL", "jdbc:odbc:MondrianFoodMart");
/**
* Property containing the JDBC URL of a test database.
* It does not default.
*/
public final StringProperty TestJdbcURL = new StringProperty(
this, "mondrian.test.jdbcURL", null);
/**
* Property containing the JDBC user of a test database.
* The default value is null, to cope with DBMSs that don't need this.
*/
public final StringProperty TestJdbcUser = new StringProperty(
this, "mondrian.test.jdbcUser", null);
/**
* Property containing the JDBC password of a test database.
* The default value is null, to cope with DBMSs that don't need this.
*/
public final StringProperty TestJdbcPassword = new StringProperty(
this, "mondrian.test.jdbcPassword", null);
/**
* Property which determines when a dimension is considered "large".
* If a dimension has more than this number of members, use a
* smart member reader (see {@link mondrian.rolap.SmartMemberReader}).
* Default is 100.
*/
public final IntegerProperty LargeDimensionThreshold = new IntegerProperty(
this, "mondrian.rolap.LargeDimensionThreshold", 100);
/**
* Property which, with {@link #SparseSegmentCountThreshold}, determines
* whether to choose a sparse or dense representation when storing
* collections of cell values.
*
* <p>When storing collections of cell values, we have to choose between a
* sparse and a dense representation, based upon the <code>possible</code>
* and <code>actual</code> number of values.
* The <code>density</code> is <code>actual / possible</code>.
* We use a sparse representation if
* <code>possible -
* {@link #SparseSegmentCountThreshold countThreshold} *
* actual >
* {@link #SparseSegmentDensityThreshold densityThreshold}</code>
*
* <p>The default values are
* {@link #SparseSegmentCountThreshold countThreshold} = 1000,
* {@link #SparseSegmentDensityThreshold} = 0.5..
*
* <p>At these default values, we use a dense representation
* for (1000 possible, 0 actual), or (2000 possible, 500 actual), or
* (3000 possible, 1000 actual). Any fewer actual values, or any more
* possible values, and we will use a sparse representation.
*/
public final IntegerProperty SparseSegmentCountThreshold =
new IntegerProperty(
this, "mondrian.rolap.SparseSegmentValueThreshold", 1000);
public final DoubleProperty SparseSegmentDensityThreshold =
new DoubleProperty(
this, "mondrian.rolap.SparseSegmentDensityThreshold", 0.5);
/**
* todo:
*/
public final StringProperty QueryFilePattern = new StringProperty(
this, "mondrian.test.QueryFilePattern", null);
/**
* todo:
*/
public final StringProperty QueryFileDirectory = new StringProperty(
this, "mondrian.test.QueryFileDirectory", null);
/**
* todo:
*/
public final IntegerProperty Iterations = new IntegerProperty(
this, "mondrian.test.Iterations", 1);
/**
* todo:
*/
public final IntegerProperty VUsers = new IntegerProperty(
this, "mondrian.test.VUsers", 1);
/**
* Property which returns the time limit for the test run in seconds.
* If the test is running after that time, it is terminated.
*/
public final IntegerProperty TimeLimit = new IntegerProperty(
this, "mondrian.test.TimeLimit", 0);
/**
* Property which indicates whether this is a "warmup test".
*/
public final BooleanProperty Warmup = new BooleanProperty(
this, "mondrian.test.Warmup", false);
/**
* Property which contains the URL of the catalog to be used by
* {@link mondrian.tui.CmdRunner} and XML/A Test.
*/
public final StringProperty CatalogURL = new StringProperty(
this, "mondrian.catalogURL", null);
//////////////////////////////////////////////////////////////////////////
//
// properties relating to aggregates
//
/**
* Boolean property that controls whether aggregates should be used.
*
* <p>If true, then aggregates are used. This property is
* queried prior to each aggregate query so that changing the value of this
* property dynamically (not just at startup) is meaningful.
* Aggregates can be read from the database using the
* {@link #ReadAggregates} property but will not be used unless this
* property is set to true.
*/
public final BooleanProperty UseAggregates = new BooleanProperty(
this, "mondrian.rolap.aggregates.Use", false);
/**
* Boolean property which determines whether aggregates should be read.
*
* <p>If set to true, then the database is scanned for aggregate tables.
* Unless mondrian.rolap.aggregates.Use is set to true, the aggregates
* found will not be used.
*/
public final BooleanProperty ReadAggregates = new BooleanProperty(
this, "mondrian.rolap.aggregates.Read", false);
/**
* Boolean property that controls whether aggregate tables
* are ordered by their volume or row count.
*/
public final BooleanProperty ChooseAggregateByVolume = new BooleanProperty(
this, "mondrian.rolap.aggregates.ChooseByVolume", false);
/**
* String property which can be either a resource in the
* Mondrian jar or a URL.
*
* <p>The default value is "/DefaultRules.xml", which is in the
* mondrian.rolap.aggmatcher package in Mondrian.jar.
*
* <p>Normally, this property is not set by a user.
*/
public final StringProperty AggregateRules = new StringProperty(
this, "mondrian.rolap.aggregates.rules", "/DefaultRules.xml");
/**
* String property which is the AggRule element's tag value.
*
* <p>Normally, this property is not set by a user.
*/
public final StringProperty AggregateRuleTag = new StringProperty(
this, "mondrian.rolap.aggregates.rule.tag", "default");
/**
* Boolean property which controls whether to print the SQL code
* generated for aggregate tables.
*
* <p>If set, then as each aggregate request is processed, both the lost
* and collapsed dimension create and insert sql code is printed.
* This is for use in the CmdRunner allowing one to create aggregate table
* generation sql.
*/
public final BooleanProperty GenerateAggregateSql = new BooleanProperty(
this, "mondrian.rolap.aggregates.generateSql", false);
//
//////////////////////////////////////////////////////////////////////////
/**
* Boolean property that controls whether a RolapStar's
* aggregate data cache is cleared after each query.
* If true, no RolapStar will cache aggregate data from one
* query to the next (the cache is cleared after each query).
*/
public final BooleanProperty DisableCaching = new BooleanProperty(
this, "mondrian.rolap.star.disableCaching", false);
/**
* Boolean property that controls whether or not triggers are
* executed when a {@link MondrianProperties} property changes.
*/
public final BooleanProperty EnableTriggers = new BooleanProperty(
this, "mondrian.olap.triggers.enable", true);
/**
* Boolean property which controls pretty-print mode.
* If set to true, the all SqlQuery SQL strings
* will be generated in pretty-print mode, formatted for ease of reading.
*/
public final BooleanProperty GenerateFormattedSql = new BooleanProperty(
this, "mondrian.rolap.generate.formatted.sql", false);
/**
* Boolean property which controls whether the MDX parser resolves uses
* case-sensitive matching when looking up identifiers. The default is
* false.
*/
public final BooleanProperty CaseSensitive = new BooleanProperty(
this, "mondrian.olap.case.sensitive", false);
/**
* Boolean property which controls whether to use a cache for frequently
* evaluated expressions. With the cache disabled, an expression like
* <code>Rank([Product].CurrentMember,
* Order([Product].MEMBERS, [Measures].[Unit Sales]))</code> would perform
* many redundant sorts. The default is true.
*/
public final BooleanProperty EnableExpCache = new BooleanProperty(
this, "mondrian.expCache.enable", true);
/**
* Integer property which controls whether to test operators' dependencies,
* and how much time to spend doing it.
*
* <p>If this property is positive, Mondrian allocates an expression
* evaluator which evaluates each expression several times, and makes sure
* that the results of the expression are independent of dimensions which
* the expression claims to be independent of.
*
* <p>The default is 0.
*/
public final IntegerProperty TestExpDependencies = new IntegerProperty(
this, "mondrian.test.ExpDependencies", 0);
/**
* Seed for random number generator used by some of the tests.
*
* <p>
* Any value besides 0 or -1 gives deterministic behavior.
* The default value is 1234: most users should use this.
* Setting the seed to a different value can increase coverage, and
* therefore may uncover new bugs.
*
* <p>If you set the value to 0, the system will generate its own
* pseudo-random seed.
*
* <p>If you set the value to -1, Mondrian uses the next seed from an
* internal random-number generator. This is a little more deterministic
* than setting the value to 0.
*/
public final IntegerProperty TestSeed = new IntegerProperty(
this, "mondrian.test.random.seed", 1234);
/**
* Name of locale property file.
* Default value is null.
*/
public final StringProperty LocalePropFile = new StringProperty(
this, "mondrian.rolap.localePropFile", null);
}
// End MondrianProperties.java
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?