|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.keys.DefaultKeyBuilderFactory
public class DefaultKeyBuilderFactory
Default factory for Unicode IKeyBuilders. This does NOT generate
thread-local instances. The factory serializes all properties that were
required to generate a configuration so that the same configuration may be
materialized on another JVM or host by de-serializing an instance of this
factory.
ThreadLocalKeyBuilderFactory,
Serialized Form| Field Summary | |
|---|---|
static String |
ICU_NOT_AVAILABLE
Text of the exception thrown when the ICU library is required but is not available. |
protected static org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
DefaultKeyBuilderFactory(Properties properties)
Create a factory for IKeyBuilder instances configured according
to the specified properties. |
|
| Method Summary | |
|---|---|
CollatorEnum |
getCollator()
The selected collator. |
DecompositionEnum |
getDecompositionMode()
The selected decomposition mode (MAY be null, which means
no override). |
int |
getInitialCapacity()
The initial buffer capacity (the actual capacity grows as needed at runtime). |
IKeyBuilder |
getKeyBuilder()
Return an instance of the configured IKeyBuilder. |
Locale |
getLocale()
The selected Locale. |
Object |
getStrength()
The selected collator strength. |
static boolean |
isICUAvailable()
Figures out whether or not the ICU library is available. |
String |
toString()
Representation includes all aspects of the Serializable state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final transient org.apache.log4j.Logger log
public static final String ICU_NOT_AVAILABLE
| Constructor Detail |
|---|
public DefaultKeyBuilderFactory(Properties properties)
IKeyBuilder instances configured according
to the specified properties. Any properties NOT explicitly given
will be defaulted from System.getProperties(). The pre-defined
properties KeyBuilder.Options.USER_LANGUAGE, KeyBuilder.Options.USER_COUNTRY,
and KeyBuilder.Options.USER_VARIANT MAY be overridden. The factory will
support Unicode unless CollatorEnum.ASCII is explicitly specified
for the KeyBuilder.Options.COLLATOR property.
properties - The properties to be used (optional). When null
the System properties are used.
UnsupportedOperationException -
The ICU library was required but was not located. Make sure
that the ICU JAR is on the classpath. See
KeyBuilder.Options.COLLATOR.
Note: If you are trying to use ICU4JNI then that has to be locatable as a native library. How you do this is different for Windows and Un*x.
KeyBuilder.Options| Method Detail |
|---|
public final int getInitialCapacity()
public final CollatorEnum getCollator()
public final Locale getLocale()
Locale.
public final Object getStrength()
StrengthEnum, an Integer, or
null (which means no override).public final DecompositionEnum getDecompositionMode()
null, which means
no override).
public String toString()
Serializable state.
toString in class Objectpublic IKeyBuilder getKeyBuilder()
IKeyBuilderFactoryIKeyBuilder.
getKeyBuilder in interface IKeyBuilderFactorypublic static boolean isICUAvailable()
true iff the ICU library is available.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||