public class CASMgrSerializer extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
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.
|
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.
|
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. |
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.
|
String[] |
typeNames
A list of type names (symbol table).
|
int[] |
typeOrder |
| Constructor and Description |
|---|
CASMgrSerializer()
Constructor for CASMgrSerializer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIndexRepository(FSIndexRepositoryImpl ir)
Serialize index repository.
|
void |
addTypeSystem(TypeSystemImpl ts) |
FSIndexRepositoryImpl |
getIndexRepository(CASImpl cas) |
TypeSystemImpl |
getTypeSystem() |
boolean |
hasIndexRepository() |
public static final int SOURCE_JEDI
public static final int SOURCE_TAF
public int[] typeOrder
public 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 String[] typeNames
1, and
we index the names according to their internal code. That means that
typeNames[0] == null.public 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 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
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)
public boolean hasIndexRepository()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.