|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.cas.impl.CASMgrSerializer
public class CASMgrSerializer
Container for serialized CAS typing information. Contains information about the type system, as well as the index repository. If more than one CAS that use the same type system and index repository need to be serialized, this information needs to be serialized only once.
Field Summary | |
---|---|
int[] |
comparatorIndex
For each index, where the corresponding comparator starts in the comparators field. |
int[] |
comparators
Encodings of the actual comparators. |
int[] |
featDecls
Feature declarations. |
java.lang.String[] |
featureNames
A list of feature names (symbol table). |
int[] |
featureOffsets
The offsets for features. |
int[] |
indexingStrategy
For each index, the indexing strategy of that index. |
java.lang.String[] |
indexNames
The index identifiers. |
int[] |
nameToIndexMap
A mapping from index names to index IDs. |
int |
source
Set this appropriately. |
static int |
SOURCE_JEDI
|
static int |
SOURCE_TAF
|
int[] |
stringSubtypes
A list of type codes for the string subtypes. |
int[] |
stringSubtypeValuePos
The start positions of the string value subarrays of stringSubtypeValues . |
java.lang.String[] |
stringSubtypeValues
The string values for the string subtypes. |
int |
topTypeCode
The internal code of the top type. |
int[] |
typeInheritance
Type inheritance information: for each type other than the top type, we provide the parent in the inheritance scheme. |
java.lang.String[] |
typeNames
A list of type names (symbol table). |
int[] |
typeOrder
|
Constructor Summary | |
---|---|
CASMgrSerializer()
Constructor for CASMgrSerializer. |
Method Summary | |
---|---|
void |
addIndexRepository(FSIndexRepositoryImpl ir)
Serialize index repository. |
void |
addTypeSystem(TypeSystemImpl ts)
|
FSIndexRepositoryImpl |
getIndexRepository(CASImpl cas)
|
TypeSystemImpl |
getTypeSystem()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SOURCE_JEDI
public static final int SOURCE_TAF
public int[] typeOrder
public java.lang.String[] indexNames
public int[] nameToIndexMap
indexNames.length == nameToIndexMap.length
and for each i
in
nameToIndexMap
, 0 <= i <
indexTypes.length
.
public int[] indexingStrategy
SORTED_INDEX
,
SET_INDEX
and
BAG_INDEX
.
indexingStrategy.length == indexTypes.length
.
public int[] comparatorIndex
comparators
field.
comparatorIndex.length == indexTypes.length
.
public int[] comparators
STANDARD_COMPARE
and
REVERSE_STANDARD_COMPARE
.
public java.lang.String[] typeNames
1
, and
we index the names according to their internal code. That means that
typeNames[0] == null
.
public java.lang.String[] featureNames
1
, ,
and we index the names according to their internal code. That means that
featureNames[0] == null
.
public int[] typeInheritance
public int[] featDecls
i
(which is an integer >= 1),
featDecls[(i-1)*3]
is the domain type code, featDecls[(i-1)*3+1]
is
the range type code, and featDecls[(i-1)*3+2]
is the multipleReferencesAllowed
flag (0 or 1).
public int topTypeCode
public int[] featureOffsets
public int[] stringSubtypes
public java.lang.String[] stringSubtypeValues
stringSubtypeValuePos
.
public int[] stringSubtypeValuePos
stringSubtypeValues
.
stringSubtypeValuePos.length ==
stringSubtypes.length
. For each i <
stringSubtypes.length
,
stringSubtypeValuePos[i]
is the start of the string values for
stringSubtypes[i]
.
public int source
Constructor Detail |
---|
public CASMgrSerializer()
Method Detail |
---|
public void addIndexRepository(FSIndexRepositoryImpl ir)
ir
- The index repository to be serialized.public void addTypeSystem(TypeSystemImpl ts)
public TypeSystemImpl getTypeSystem()
public FSIndexRepositoryImpl getIndexRepository(CASImpl cas)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |