Package org.apache.calcite.util
Interface SaffronProperties
-
public interface SaffronProperties
Provides an environment for debugging information, et cetera, used by saffron.It is a singleton, accessed via the
INSTANCE
object. It is populated from System properties if saffron is invoked via amain()
method, from ajavax.servlet.ServletContext
if saffron is invoked from a servlet, and so forth. If there is a file called"saffron.properties"
in the current directory, it is read too.Every property used in saffron code must have a method in this interface. The method must return a sub-class of
Resources.Prop
. The javadoc comment must describe the name of the property (for example, "net.sf.saffron.connection.PoolSize") and the default value, if any. Developers, please make sure that this remains so!
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SaffronProperties.Helper
Helper class.
-
Field Summary
Fields Modifier and Type Field Description static SaffronProperties
INSTANCE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Resources.BooleanProp
allowInfiniteCostConverters()
The boolean property "saffron.opt.allowInfiniteCostConverters" determines whether the optimizer will consider adding converters of infinite cost in order to convert a relational expression from one calling convention to another.Resources.StringProp
defaultCharset()
The string property "saffron.default.charset" is the name of the default character set.Resources.StringProp
defaultCollation()
The string property "saffron.default.collation.name" is the name of the default collation.Resources.StringProp
defaultCollationStrength()
The string property "saffron.default.collation.strength" is the strength of the default collation.Resources.StringProp
defaultNationalCharset()
The string property "saffron.default.nationalcharset" is the name of the default national character set which is used with the N'string' construct which may or may not be different from thedefaultCharset()
.Resources.IntProp
metadataHandlerCacheMaximumSize()
The string property "saffron.metadata.handler.cache.maximum.size" is the maximum size of the cache of metadata handlers.
-
-
-
Field Detail
-
INSTANCE
static final SaffronProperties INSTANCE
-
-
Method Detail
-
allowInfiniteCostConverters
Resources.BooleanProp allowInfiniteCostConverters()
The boolean property "saffron.opt.allowInfiniteCostConverters" determines whether the optimizer will consider adding converters of infinite cost in order to convert a relational expression from one calling convention to another. The default value istrue
.
-
defaultCharset
Resources.StringProp defaultCharset()
The string property "saffron.default.charset" is the name of the default character set. The default is "ISO-8859-1". It is used inSqlValidator
.
-
defaultNationalCharset
Resources.StringProp defaultNationalCharset()
The string property "saffron.default.nationalcharset" is the name of the default national character set which is used with the N'string' construct which may or may not be different from thedefaultCharset()
. The default is "ISO-8859-1". It is used inSqlLiteral(java.lang.Object, org.apache.calcite.sql.type.SqlTypeName, org.apache.calcite.sql.parser.SqlParserPos)
-
defaultCollation
Resources.StringProp defaultCollation()
The string property "saffron.default.collation.name" is the name of the default collation. The default is "ISO-8859-1$en_US". Used inSqlCollation
andSqlLiteral(java.lang.Object, org.apache.calcite.sql.type.SqlTypeName, org.apache.calcite.sql.parser.SqlParserPos)
-
defaultCollationStrength
Resources.StringProp defaultCollationStrength()
The string property "saffron.default.collation.strength" is the strength of the default collation. The default is "primary". Used inSqlCollation
andSqlLiteral(java.lang.Object, org.apache.calcite.sql.type.SqlTypeName, org.apache.calcite.sql.parser.SqlParserPos)
-
metadataHandlerCacheMaximumSize
Resources.IntProp metadataHandlerCacheMaximumSize()
The string property "saffron.metadata.handler.cache.maximum.size" is the maximum size of the cache of metadata handlers. A typical value is the number of queries being concurrently prepared multiplied by the number of types of metadata.If the value is less than 0, there is no limit. The default is 1,000.
-
-