All Downloads are FREE. Search and download functionalities are using the official Maven repository.

studio.raptor.sqlparser.fast.engine.SysProperties Maven / Gradle / Ivy

/*
 * Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
 * and the EPL 1.0 (http://h2database.com/html/license.html).
 * Initial Developer: H2 Group
 */
package studio.raptor.sqlparser.fast.engine;

import studio.raptor.sqlparser.fast.util.MathUtils;
import studio.raptor.sqlparser.fast.util.Utils;

public class SysProperties {

  /**
   * System property h2.allowedClasses (default: *).
* Comma separated list of class names or prefixes. */ public static final String ALLOWED_CLASSES = Utils.getProperty("h2.allowedClasses", "*"); /** * System property h2.check (default: true).
* Assertions in the database engine. */ //## CHECK ## public static final boolean CHECK = Utils.getProperty("h2.check", true); /** * System property h2.collatorCacheSize (default: 32000).
* The cache size for collation keys (in elements). Used when a collator has * been set for the database. */ public static final int COLLATOR_CACHE_SIZE = Utils.getProperty("h2.collatorCacheSize", 32000); /** * System property h2.objectCache (default: true).
* Cache commonly used values (numbers, strings). There is a shared cache * for all values. */ public static final boolean OBJECT_CACHE = Utils.getProperty("h2.objectCache", true); /** * System property h2.objectCacheMaxPerElementSize (default: * 4096).
* The maximum size (precision) of an object in the cache. */ public static final int OBJECT_CACHE_MAX_PER_ELEMENT_SIZE = Utils.getProperty("h2.objectCacheMaxPerElementSize", 4096); /** * System property h2.objectCacheSize (default: 1024).
* The maximum number of objects in the cache. * This value must be a power of 2. */ public static final int OBJECT_CACHE_SIZE = MathUtils.nextPowerOf2(Utils.getProperty("h2.objectCacheSize", 1024)); /** * System property h2.oldStyleOuterJoin * (default: true for version 1.3, false for version 1.4).
* Limited support for the old-style Oracle outer join with "(+)". */ public static final boolean OLD_STYLE_OUTER_JOIN = Utils.getProperty("h2.oldStyleOuterJoin", Constants.VERSION_MINOR >= 4 ? false : true); /** * System property h2.sortBinaryUnsigned * (default: false with version 1.3, true with version 1.4).
* Whether binary data should be sorted in unsigned mode * (0xff is larger than 0x00). */ public static final boolean SORT_BINARY_UNSIGNED = Utils.getProperty("h2.sortBinaryUnsigned", Constants.VERSION_MINOR >= 4 ? true : false); /** * System property h2.sortNullsHigh (default: false).
* Invert the default sorting behavior for NULL, such that NULL * is at the end of a result set in an ascending sort and at * the beginning of a result set in a descending sort. */ public static final boolean SORT_NULLS_HIGH = Utils.getProperty("h2.sortNullsHigh", false); /** * System property h2.traceIO (default: false).
* Trace all I/O operations. */ public static final boolean TRACE_IO = Utils.getProperty("h2.traceIO", false); /** * System property h2.javaObjectSerializer * (default: null).
* The JavaObjectSerializer class name for java objects being stored in * column of type OTHER. It must be the same on client and server to work * correctly. */ public static final String JAVA_OBJECT_SERIALIZER = Utils.getProperty("h2.javaObjectSerializer", null); private SysProperties() { // utility class } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy