public final class FsIndexFactory extends Object
Modifier and Type | Field and Description |
---|---|
static int |
REVERSE_STANDARD_COMPARE |
static int |
STANDARD_COMPARE |
Modifier and Type | Method and Description |
---|---|
static FsIndexCollection |
createFsIndexCollection()
Creates a
FsIndexCollection from all index descriptions that can be found via the
pattern specified in the system property
org.apache.uima.fit.fsindex.import_pattern or via the
META-INF/org.apache.uima.fit/fsindexes.txt files in the classpath. |
static FsIndexCollection |
createFsIndexCollection(Class<?> componentClass)
Create index configuration data for a given class definition using reflection and the
configuration parameter annotation.
|
static FsIndexCollection |
createFsIndexCollection(FsIndexDescription... descriptions) |
static FsIndexCollection |
createFsIndexCollection(String... descriptorNames)
Creates a
FsIndexCollection from descriptor names. |
static FsIndexDescription |
createFsIndexDescription(String label,
String kind,
String typeName,
boolean useTypePriorities,
FsIndexKeyDescription... keys) |
static FsIndexKeyDescription |
createFsIndexKeyDescription(String featureName) |
static FsIndexKeyDescription |
createFsIndexKeyDescription(String featureName,
int comparator) |
static FsIndexCollection |
createTypeSystemDescriptionFromPath(String... descriptorURIs)
Creates a
FsIndexCollection from a descriptor file |
static void |
forceIndexDescriptorsScan()
Force rescan of index descriptors.
|
static String[] |
scanIndexDescriptors()
Get all currently accessible index descriptor locations.
|
public static final int STANDARD_COMPARE
public static final int REVERSE_STANDARD_COMPARE
public static FsIndexCollection createFsIndexCollection(Class<?> componentClass)
public static FsIndexDescription createFsIndexDescription(String label, String kind, String typeName, boolean useTypePriorities, FsIndexKeyDescription... keys)
public static FsIndexCollection createFsIndexCollection(FsIndexDescription... descriptions)
public static FsIndexKeyDescription createFsIndexKeyDescription(String featureName)
public static FsIndexKeyDescription createFsIndexKeyDescription(String featureName, int comparator)
public static FsIndexCollection createFsIndexCollection(String... descriptorNames)
FsIndexCollection
from descriptor names.descriptorNames
- The fully qualified, Java-style, dotted descriptor names.FsIndexCollection
that includes the indexes from all of the specified files.public static FsIndexCollection createTypeSystemDescriptionFromPath(String... descriptorURIs)
FsIndexCollection
from a descriptor filedescriptorURIs
- The descriptor file paths.FsIndexCollection
that includes the indexes from all of the specified files.public static FsIndexCollection createFsIndexCollection() throws ResourceInitializationException
FsIndexCollection
from all index descriptions that can be found via the
pattern specified in the system property
org.apache.uima.fit.fsindex.import_pattern
or via the
META-INF/org.apache.uima.fit/fsindexes.txt
files in the classpath.ResourceInitializationException
public static String[] scanIndexDescriptors() throws ResourceInitializationException
forceIndexDescriptorsScan()
.ResourceInitializationException
- if the locations could not be resolved.public static void forceIndexDescriptorsScan()
scanIndexDescriptors()
will rescan
all auto-import locations.Copyright © 2012–2013 The Apache Software Foundation. All rights reserved.