Uses of Class
org.apache.uima.jcas.cas.TOP
Packages that use TOP
Package
Description
Common Analysis System(CAS) Interfaces
Implementation and Low-Level API for the CAS Interfaces.
Interfaces for accessing the JCAS.
JCAS model for built-in CAS types
Provides the classes that support the Java Cas Model (JCM).
Utility classes and interfaces used by UIMA components.
-
Uses of TOP in org.apache.uima.cas
Methods in org.apache.uima.cas with type parameters of type TOPModifier and TypeMethodDescriptiondefault <T extends TOP>
CommonArrayFS<T> CAS.emptyArray(Class<T> clazz) default <T extends TOP>
EmptyFSList<T> CAS.emptyFSList()default <T extends TOP>
FSIterator<T> CAS.getAllIndexedFS(Class<T> clazz) Gets an iterator over all indexed (in this CAS view) FeatureStructures of the specified Type (and any of its subtypes).default <T extends TOP>
FSIterator<T> CAS.getAllIndexedFS(Type type) Gets an iterator over all indexed (in this CAS view) FeatureStructures of the specified Type (and any of its subtypes).CAS.getCasType(Class<T> clazz) default <T extends TOP>
Collection<T> CAS.getIndexedFSs(Class<T> clazz) Returns a collection of all the FSs that are indexed in this view, in an arbitrary order.default <T extends TOP>
Collection<T> CAS.getIndexedFSs(Type type) Returns an unmodifiable collection of all the FSs that are indexed in this view, in an arbitrary order.<T extends TOP>
Collection<T> FSIndexRepository.getIndexedFSs()Returns an unmodifiable collection of all of the FSs that are indexed in this view, in an arbitrary order.<T extends TOP>
Collection<T> FSIndexRepository.getIndexedFSs(Class<T> clazz) Returns an unmodifiable collection of all the FSs of this type and its subtypes, that are indexed in this view, in an arbitrary order.<T extends TOP>
Collection<T> FSIndexRepository.getIndexedFSs(Type type) Returns an unmodifiable collection of all the FSs of this type and its subtypes, that are indexed in this view, in an arbitrary order.default <T extends TOP>
voidFSIndexRepository.removeAllExcludingSubtypes(Class<T> clazz) Remove all instances of just this type, excluding subtypes, from all indexes in the repository view.default <T extends TOP>
voidFSIndexRepository.removeAllIncludingSubtypes(Class<T> clazz) Remove all instances of type, including all subtypes from all indexes in the repository view.CAS.select()CAS.select(int jcasType) <T extends TOP>
T[]ArrayFS.toArray(T[] a) Populates an existing array from this FS Array.Methods in org.apache.uima.cas that return TOPModifier and TypeMethodDescription<T extends TOP>
T[]ArrayFS.toArray(T[] a) Populates an existing array from this FS Array.Methods in org.apache.uima.cas that return types with arguments of type TOPModifier and TypeMethodDescriptiondefault Collection<TOP> CAS.getIndexedFSs()Returns an unmodifiable collection of all of the FSs that are indexed in this view, in an arbitrary order.Methods in org.apache.uima.cas with parameters of type TOPModifier and TypeMethodDescriptionPositions to the fs using moveTo(fs).Positions to the fs using moveTo(fs), followed by a shifted(offset).Positions to the fs using moveTo(fs).Positions to the fs using moveTo(fs), followed by a shifted(offset).SelectFSs.singleOrNull(TOP fs) Positions to the fs using moveTo(fs).SelectFSs.singleOrNull(TOP fs, int offset) Positions to the fs using moveTo(fs), followed by a shifted(offset).Starting Position specification - For ordered sources, specifies which FS to start at.Starting Position specification - A combination of startAt followed by a shift Requires an ordered index not necessarily AnnotationIndex, not necessarily sorted<T extends TOP>
T[]ArrayFS.toArray(T[] a) Populates an existing array from this FS Array.Method parameters in org.apache.uima.cas with type arguments of type TOP -
Uses of TOP in org.apache.uima.cas.impl
Fields in org.apache.uima.cas.impl declared as TOPModifier and TypeFieldDescriptionprivate TOPBinaryCasSerDes4.Deserializer.currentFsthe FS being deserializedprivate TOPBinaryCasSerDes6.currentFsthe FS being deserializedprivate TOPXCASDeserializer.XCASDeserializerHandler.currentFsprivate TOPXmiCasDeserializer.XmiCasDeserializerHandler.currentFsprivate static final TOPFeaturePathImpl.FEATURE_PATH_FAILEDprivate TOPBinaryCasSerDes.BinDeserSupport.fs(package private) final TOPCASImpl.FsChange.fsref to the FS being modifiedprivate final TOPXCASDeserializer.FSInfo.fsprivate TOPBinaryCasSerDes.BinDeserSupport.fsToBeAddedBackprivate TOPXCASDeserializer.XCASDeserializerHandler.highestIdFsprivate final TOP[]FsIndex_flat.indexedFSs(package private) TOPCasCompare.Prev.prevCompareTopref to the top of the chain; used as a boolean flagprivate TOPBinaryCasSerDes4.Deserializer.prevFsprivate TOPBinaryCasSerDes4.Serializer.prevFsprivate final TOP[]BinaryCasSerDes4.Deserializer.prevFsByTypeUsed for differencing, except for HeapRef values which use aboveprivate final TOP[]BinaryCasSerDes4.Serializer.prevFsByTypeFor differencing when reading and writing.private TOPSelectFSs_impl.startingFsThis is used for non-annotation positioning too Used for preceding since we tweak the end offset of the reference annotationFields in org.apache.uima.cas.impl with type parameters of type TOPModifier and TypeFieldDescription(package private) final Int2ObjHashMap<TOP, TOP> CommonSerDesSequential.addr2fsa map from the modelled (v2 style) FS addr to the V3 FS created when serializing (non-delta), deserializing (non-delta) augmented when deserializing(delta) used when deserializing (delta and non-delta) retained after deserializing (in case of subsequent delta (multiple) deserializations being combined) For delta, the addr is the modeled addr for the full CAS including both above and below the line.(package private) final Int2ObjHashMap<TOP, TOP> CommonSerDesSequential.addr2fsa map from the modelled (v2 style) FS addr to the V3 FS created when serializing (non-delta), deserializing (non-delta) augmented when deserializing(delta) used when deserializing (delta and non-delta) retained after deserializing (in case of subsequent delta (multiple) deserializations being combined) For delta, the addr is the modeled addr for the full CAS including both above and below the line.private final Comparator<TOP> Subiterator.annotationComparator_withIdprivate Comparator<TOP> FSIndexRepositoryImpl.SharedIndexInfo.annotationFsComparatorNoTypeWithIdprivate Comparator<TOP> FSIndexRepositoryImpl.SharedIndexInfo.annotationFsComparatorNoTypeWithoutIdprivate Comparator<TOP> FSIndexRepositoryImpl.SharedIndexInfo.annotationFsComparatorWithIdprivate Comparator<TOP> FSIndexRepositoryImpl.SharedIndexInfo.annotationFsComparatorWithoutIdlazily created comparator using the built-in annotation index(package private) final Map<TOP, List<ArrayElement>> OutOfTypeSystemData.arrayElementsMap from FSArray instances to List of ArrayElement objects, each of which holds an array index and value (as a string).private final Int2ObjHashMap<TOP, TOP> BinaryCasSerDes.byteAuxAddr2fsaMap from an aux addr starting address for an array of boolean/byte/short/long/double to the V3 FS.private final Int2ObjHashMap<TOP, TOP> BinaryCasSerDes.byteAuxAddr2fsaMap from an aux addr starting address for an array of boolean/byte/short/long/double to the V3 FS.CasCompare.c1FoundFSsCasCompare.c2FoundFSsprivate static final WeakIdentityMap<ClassLoader, Map<String, Class<? extends TOP>>> FSClassRegistry.cl_to_spiJCasprotected final Comparator<TOP> FsIterator_multiple_indexes.comparatorMaybeNoTypeWithoutIdfor set and sorted, both ignore id because this comparator is not used for comparing within the index, only for compares between index items and outside args.private final Comparator<TOP> FsIterator_subtypes_snapshot.comparatorMaybeNoTypeWithoutIdprivate final Comparator<TOP> Subiterator.comparatorMaybeNoTypeWithoutIdprotected final Comparator<TOP> FsIterator_set_sorted2.comparatorMaybeNoTypeWithoutIDif the iterator is configured to ignore TypeOrdering, then the comparator omits the type (if the index has a type order key)protected final Comparator<TOP> FsIndex_singletype.comparatorNoTypeWithIDcomparator (with id) (ignoring typeorder) - used within one typeprivate final Comparator<TOP> FsIndex_snapshot.comparatorNoTypeWithoutIdprotected final Comparator<TOP> FsIndex_singletype.comparatorNoTypeWithoutIDcomparator (without id) (ignoring typeorder) - used within one type - used for iterator operations where the type is requested to be ignoredprotected final Comparator<TOP> FsIndex_singletype.comparatorWithIDprivate final Comparator<TOP> FsIndex_flat.comparatorWithoutIdprivate final Comparator<TOP> FsIndex_snapshot.comparatorWithoutIdprotected final Comparator<TOP> FsIndex_singletype.comparatorWithoutIDXCASSerializer.XCASDocSerializer.duplicatesAny FS indexed in more than one IR goes in here, the value is the associated duplicate key, Key is used to index into dupVectorsCasSerializerSupport.CasDocSerializer.enqueued_multiRef_arrays_or_listsSet of array or list FSs referenced from features marked as multipleReferencesAllowed, - which have previously been serialized "inline" - which now need to be serialized as separate items Set during enqueue scanning, to handle the case where the "visited_not_yet_written" set may have already recorded that this FS is already processed for enqueueing, but it is an array or list item which was being put "in-line" and no element is being written.OutOfTypeSystemData.extraFeatureValuesMap from Feature Structure to List of String arrays holding feature names and values for out-of-typesystem features on in-typesystem FSs.static final Comparator<TOP> LowLevelIndex.FS_ID_COMPARATOR(package private) final Obj2IntIdentityHashMap<TOP> CommonSerDesSequential.fs2addra map from a fs to its addr in the modeled heap, == v2 style addr created during serialization and deserialization used during serialization to create addr info for index info serialization For delta, the addr is the modeled addr for the full CAS including both above and below the line.private final Obj2IntIdentityHashMap<TOP> BinaryCasSerDes4.Serializer.fs2seqconvert between FSs and "sequential" numbers This is for compression efficiency and also is needed for backwards compatibility with v2 serialization forms, where index information was written using "sequential" numbers Note: This may be identity map, but may not in the case for V3 where some FSs are GC'd Contrast with fs2addr and addr2fs in csds - these use the pseudo v2 addresses as the intFSIndexRepositoryImpl.ProcessedIndexInfo.fsAddedToIndexFSIndexRepositoryImpl.ProcessedIndexInfo.fsDeletedFromIndexCasCompare.Prev.fsListordered list of traversed FSs, including duplicatesFSIndexRepositoryImpl.ProcessedIndexInfo.fsReindexedFSsTobeAddedback.FSsTobeAddedbackMultiple.fss2viewsFor each FS, the list of views where it was removed.BinaryCasSerDes6.fssToSerializeFSs being serialized.BinaryCasSerDes6.ReuseInfo.fssToSerializeprivate Obj2IntIdentityHashMap<TOP> XmiSerializationSharedData.fsToXmiIdV3: FSs have an id - use that.AllFSs.includeFilterprivate final ObjHashSet<TOP> FsIndex_bag.indexXCASSerializer.XCASDocSerializer.indexedFSslist of FSs that are in an index somewhere.(package private) final ArrayList<FsIndex_iicp<TOP>> FSIndexRepositoryImpl.IndexesForType.indexesForTypeFSIndexRepositoryImpl.indexUpdatesFSClassRegistry.JCasClassInfo.jcasClassThe corresponding loaded JCas Class for this UIMA type, may be a JCas class associated with a UIMA supertype if no JCas class is found for this type.CasCompare.leafErrorReportedCasCompare.leafErrorReportedXmiCasDeserializer.XmiCasDeserializerHandler.localXmiIdToFslocal map from xmi:id to FS address, used when merging multiple XMI CASes into one CAS object.private final Int2ObjHashMap<TOP, TOP> BinaryCasSerDes.longAuxAddr2fsaprivate final Int2ObjHashMap<TOP, TOP> BinaryCasSerDes.longAuxAddr2fsaCasSerializerSupport.CasDocSerializer.modifiedEmbeddedValueFSsprivate Map<TOP, CASImpl.FsChange> CASImpl.SharedViewData.modifiedPreexistingFSsTrack modified preexistingFSs Note this is a map, keyed by the FS, so all changes are merged when addedCasSerializerSupport.CasDocSerializer.multiRefFSsSet of FSs that have multiple references Has an entry for each FS (not just array or list FSs) which is (from some point on) being serialized as a multi-ref, that is, is **not** being serialized (any more) using the special notation for arrays and lists or, for JSON, **not** being serialized using the embedded notation This is for JSON which is computing the multi-refs, not depending on the setting in a feature.(package private) final HashMap<String, FsIndex_iicp<TOP>> FSIndexRepositoryImpl.name2indexMapA map from names to FsIndex_iicps, which represent the index at the top-most type declared in the index specification.XmiSerializationSharedData.nonsharedfeatureIdToFSIdV3: key is TOP, value is TOP Map from FS of a non-shared multi-valued (Array/List) FS to the FS address of the encompassing FS which has a feature whose value is this multi-valued FS.XmiSerializationSharedData.nonsharedfeatureIdToFSIdV3: key is TOP, value is TOP Map from FS of a non-shared multi-valued (Array/List) FS to the FS address of the encompassing FS which has a feature whose value is this multi-valued FS.XmiSerializationSharedData.ootsFeaturesMap from Feature Structures to OotsElementData object, capturing information about out-of-typesystem features that were part of an in-typesystem FS.CommonSerDesSequential.pendingCasCompare.prevCompareThis is used - to speed up the compare - avoid comparing the same things multiple times, instead just use previous result - when doing the comparison to break recursion if asked to compare the same two things while comparing them.CasCompare.prevCompareThis is used - to speed up the compare - avoid comparing the same things multiple times, instead just use previous result - when doing the comparison to break recursion if asked to compare the same two things while comparing them.CasSerializerSupport.CasDocSerializer.previouslySerializedFSsCasCompare.prevReportCasCompare.prevReportCasSerializerSupport.CasDocSerializer.queueFSs not in an index, but only being serialized becaused they're referenced.XCASSerializer.XCASDocSerializer.queueThe current queue for FSs to write out.XCASSerializer.XCASDocSerializer.queuedAny FS reference we've touched goes in here.private final Int2ObjHashMap<TOP, TOP> BinaryCasSerDes4.Deserializer.seq2fsconvert between FSs and "sequential" numbers Note: This may be identity map, but may not in the case for V3 where some FSs are GC'dprivate final Int2ObjHashMap<TOP, TOP> BinaryCasSerDes4.Deserializer.seq2fsconvert between FSs and "sequential" numbers Note: This may be identity map, but may not in the case for V3 where some FSs are GC'dprivate final Int2ObjHashMap<TOP, TOP> BinaryCasSerDes.shortAuxAddr2fsaprivate final Int2ObjHashMap<TOP, TOP> BinaryCasSerDes.shortAuxAddr2fsaCommonSerDesSequential.sortedFSsThe FSs in this list are not necessarily sequential, but is in ascending (simulated heap) order, needed for V2 compatibility of serialized forms.final Comparator<TOP> CasSerializerSupport.CasDocSerializer.sortFssByTypeCalled for JSon Serialization Sort a view, by type and then by begin/end asc/des for subtypes of Annotation, then by idCasSeqAddrMaps.tgtId2SrcFsmap from a target FS sequence nbr to a source id.AllFSs.toBeScannedBinaryCasSerDes6.toBeScannedFSs being processed, including below-the-line deltas.CasSerializerSupport.CasDocSerializer.visited_not_yet_writtenset of FSs that have been visited and enqueued to be serialized - exception: arrays and lists which are "inline" are put into this set, but are not enqueued to be serialized.private Int2ObjHashMap<TOP, TOP> XmiSerializationSharedData.xmiIdToFsA map from xmi:id to FeatureStructure address.private Int2ObjHashMap<TOP, TOP> XmiSerializationSharedData.xmiIdToFsA map from xmi:id to FeatureStructure address.Methods in org.apache.uima.cas.impl with type parameters of type TOPModifier and TypeMethodDescription<N extends TOP>
NFeatureStructureImplC._maybeGetBaseForPearFs()Called to convert to the base FS from a Pear versionprotected <N extends TOP>
NFeatureStructureImplC._maybeGetBaseForPearFs(N v) Called when setting a FS value which might be a trampoline<N extends TOP>
NFeatureStructureImplC._maybeGetPearFs()protected <N extends TOP>
NFeatureStructureImplC._maybeGetPearFs(N v) Called when getting a FS value which might need to return a Pear context's trampoline<T extends TOP>
voidFSIndexRepositoryImpl.addback(T fs) private <T extends TOP>
voidFSIndexRepositoryImpl.addFS_common(T fs, boolean isAddback) private <T extends TOP>
FsIndex_iicp<T> FSIndexRepositoryImpl.addNewIndex(FSIndexComparatorImpl comparator, int initialSize, int indexType) This is where the actual index gets created.(package private) <T extends TOP>
FsIndex_singletype<T> FSIndexRepositoryImpl.addNewIndexCore(FSIndexComparatorImpl comparatorForIndexSpecs, int initialSize, int indexingStrategy) The routine which actually creates a new index, for a single type.private <T extends TOP>
voidFSIndexRepositoryImpl.collectCowIndexParts(TypeImpl ti, ArrayList<CopyOnWriteIndexPart<T>> indexes) <T extends TOP>
TCASImpl.createFS(int id) This is your link from the low-level API to the high-level API.<T extends TOP>
EmptyFSList<T> CASImpl.emptyFSList()(package private) <T extends TOP>
TCASImpl.getBaseFsFromTrampoline(T fs) Given a trampoline FS, return the corresponding base Fs Supports adding Fs (which must be a non-trampoline version) to indexesprivate <T extends TOP>
Collection<T> FSIndexRepositoryImpl.getCollectionFromCows(ArrayList<CopyOnWriteIndexPart<T>> indexes) <T extends TOP>
TCASImpl.getFsFromId(int id) final <T extends TOP>
TCASImpl.getFsFromId_checked(int fsRef) <T extends TOP>
Collection<T> FSIndexRepositoryImpl.getIndexedFSs(Class<T> clazz) <T extends TOP>
Collection<T> FSIndexRepositoryImpl.getIndexedFSs(Type type) (package private) <T extends TOP>
FsIndex_iicp<T> FSIndexRepositoryImpl.IndexesForType.getNonSetIndex()<T extends TOP>
TCASImpl.ll_getFSForRef(int id) <T extends TOP>
TLowLevelCAS.ll_getFSForRef(int fsRef) Return a FS object that corresponds to a low-level reference.private <T extends TOP>
voidFSIndexRepositoryImpl.logIndexOperation(T fs, boolean added) Methods in org.apache.uima.cas.impl that return TOPModifier and TypeMethodDescriptionFeatureStructureImplC._getFeatureValueNc(int adjOffset) FeatureStructureImplC._getFeatureValueNc(FeatureImpl feat) CASImpl.createArray(TypeImpl array_type, int arrayLength) private TOPCASImpl.createFsFromGenerator(FsGenerator3[] gs, TypeImpl ti) private TOPCASImpl.createFsWithExistingId(TypeImpl ti, int id) used for ll_setIntValue which changes type codeprivate TOP[]FsIndex_flat.fillFlatArray()Flat array filled, ordered(package private) TOPId2FS.get(int id) TOP[]XmiSerializationSharedData.getAndSortByIdAllFSsInIdMap()Get all FS Addresses that have been added to the id map.XmiSerializationSharedData.getEncompassingFS(TOP nonsharedFS) FeatureStructureImplC.getFeatureValue(Feature feat) private TOPXmiCasDeserializer.XmiCasDeserializerHandler.getFsForXmiId(int xmiId) XmiSerializationSharedData.getFsForXmiId(int xmiId) Gets the FS address that corresponds to the given xmi:id, in the most recent serialization or deserialization.TOP[]XmiSerializationSharedData.getNonsharedMulitValuedFSs()private TOPBinaryCasSerDes6.getRefVal(int tgtSeq) private TOP[]XmiSerializationSharedData.getSortedKeys(Map<TOP, ?> map) CasSeqAddrMaps.getSrcFsFromTgtSeq(int seq) private TOPFeaturePathImpl.getTargetFs(TOP fs) evaluates the internal feature path for the given FeatureStructure returns(package private) TOPXCASDeserializer.XCASDeserializerHandler.maybeCreateWithV2Id(int id, Supplier<TOP> create) private TOPXmiCasDeserializer.XmiCasDeserializerHandler.maybeGetFsForXmiId(int xmiId) private TOPCASImpl.pearConvert(TOP fs, FsGenerator3 g) Inner method - after determining there is a generator First see if already have generated the pear version, and if so, use that.private TOPprivate TOPBinaryCasSerDes4.Deserializer.seq2fs(int s) Methods in org.apache.uima.cas.impl that return types with arguments of type TOPModifier and TypeMethodDescriptionprivate FsIndex_iicp<TOP> FSIndexRepositoryImpl.addNewIndex(FSIndexComparatorImpl comparator, int indexType) private FsIndex_iicp<TOP> FSIndexRepositoryImpl.addNewIndexRec(FSIndexComparatorImpl comp4indexSpecs, int indexType) Add an index for a type, and then (unless it's a DEFAULT_BAG_INDEX), call yourself recursively to add the indexes for all the directly subsumed subtypes.private FsIndex_iicp<TOP> FSIndexRepositoryImpl.addNewIndexRecursive(FSIndexComparator compForIndexSpecs, int indexType) Top level call to add the indexes for a particular index definitionprivate Comparator<TOP> FSIndexRepositoryImpl.createAnnotationFsComparator()private Comparator<TOP> FSIndexRepositoryImpl.createAnnotationFsComparator(FSComparators withId, FSComparators withTypeOrder) private Comparator<TOP> FSIndexRepositoryImpl.createAnnotationFsComparatorWithId()CASImpl.filterAboveMark(List<TOP> all, MarkerImpl mark) FSIndexRepositoryImpl.getAddedFSs()AllFSs.getAllFSs()AllFSs.getAllFSsSorted()FSIndexRepositoryImpl.getAnnotationFsComparator(FSComparators withId, FSComparators withTypeOrder) (package private) Comparator<TOP> FSIndexRepositoryImpl.getAnnotationFsComparatorWithId()FSIndexRepositoryImpl.getAnnotationFsComparatorWithoutId()private Comparator<TOP> FSIndexRepositoryImpl.getCachedComparator(FSComparators withId, FSComparators withTypeOrder) FilteredIterator.getComparator()FsIndex_iicp.getComparator()FsIndex_singletype.getComparator()FsIndex_snapshot.getComparator()FsIterator_aggregation_common.getComparator()FsIterator_backwards.getComparator()FsIterator_bag.getComparator()FsIterator_limited.getComparator()FsIterator_set_sorted2.getComparator()FsIterator_subtypes_ordered.getComparator()FsIterator_subtypes_snapshot.getComparator()FSIteratorImplBase.getComparator()default implementation of getComparatorLowLevelIndex.getComparator()LowLevelIterator_empty.getComparator()LowLevelIterator.getComparator()SelectFSs_impl.SelectFSIterator.getComparator()Subiterator.getComparator()FSIndexRepositoryImpl.getDeletedFSs()FSIndexRepositoryImpl.getIndexedFSs()FSIndexRepositoryImpl.getIndexes()FSIndexRepositoryImpl.getNonSetSingleIndexForType(int typecode) FSIndexRepositoryImpl.getNonSetSingleIndexForUsedType(int i) FSIndexRepositoryImpl.getReindexedFSs()CommonSerDesSequential.getSortedFSs()DeferredIndexUpdates.getTodos(FSIndexRepositoryImpl ir) Does just-in-time creation of PositiveIntSet if needed before addingFSIndexRepositoryImpl.getUpdatedFSs(Set<TOP> items) Id2FS.iterator()FSClassRegistry.loadJCasClassesFromSPI(ClassLoader cl) FSClassRegistry.maybeLoadLocalJCas(TypeImpl ti, ClassLoader cl) Called to load (if possible) a corresponding JCas class for a UIMA type.BinaryCasSerDes.scanAllFSsForBinarySerialization(MarkerImpl mark, CommonSerDesSequential csds) Called when serializing a cas, or deserializing a delta CAS, if not saved in that case from a previous binary serialization (in that case, the scan is done as if it is doing a non-delta serialization).CommonSerDesSequential.setup(MarkerImpl mark, int fromAddr) Scan all indexed + reachable FSs, sorted, and - create two maps from those to/from the int offsets in the simulated main heap - add all the (filtered - above the mark) FSs to the sortedFSs - set the heapEndprivate Stream<FsIndex_singletype<TOP>> FSIndexRepositoryImpl.streamNonEmptyDirectSubtypes(TypeImpl ti) FsIndex_iicp.streamNonEmptyIndexes()FSIndexRepositoryImpl.streamNonEmptyIndexes(Class<? extends TOP> clazz) FSIndexRepositoryImpl.streamNonEmptyIndexes(Type type) Stream instances of all of the non-empty indexes themselvesCASImpl.walkReachablePlusFSsSorted(Consumer<TOP> action_filtered, MarkerImpl mark, Predicate<TOP> includeFilter, CasTypeSystemMapper typeMapper) find all of the FSs via the indexes plus what's reachable.Methods in org.apache.uima.cas.impl with parameters of type TOPModifier and TypeMethodDescription(package private) void(package private) voidadd back the single FS that was removed due to - automatic protection or - delta deserialization or - updating document annotation -- for "Single" subclass(package private) void(package private) voidCASImpl.addbackSingle(TOP fs) (package private) voidCASImpl.addbackSingleIfWasRemoved(boolean wasRemoved, TOP fs) (package private) voidMust call in fs sorted order(package private) voidprivate voidXmiCasDeserializer.XmiCasDeserializerHandler.addFsToXmiId(TOP fs, int xmiId) (package private) voidCommonSerDesSequential.addFSunordered(TOP fs, int addr) For out of order calls(package private) voidXmiSerializationSharedData.addIdMapping(TOP fs, int xmiId) voidAdd a new FS id - done during prescan of source during serialization Must call in heap scan orderprivate voidXmiCasDeserializer.XmiCasDeserializerHandler.addNonsharedFSToEncompassingFSMapping(TOP nonsharedFS, TOP encompassingFS) voidXmiSerializationSharedData.addNonsharedRefToFSMapping(TOP nonsharedFS, TOP fs) Add mapping between the address of FS that is the value of a non-shared multi-valued feature of a FeatureStructure.voidXmiSerializationSharedData.addOutOfTypeSystemAttribute(TOP fs, String featName, String featVal) Records an out-of-typesystem attribute that belongs to an in-typesystem FS.voidXmiSerializationSharedData.addOutOfTypeSystemChildElements(TOP fs, String featName, ArrayList<String> featVals) Records out-of-typesystem child elements that belong to an in-typesystem FS.voidCasSeqAddrMaps.addSrcFsForTgt(TOP srcFs, boolean inSrc) Called during deserialize to incrementally addprivate voidBinaryCasSerDes6.addStringsFromFS(TOP fs) Add all the strings ref'd by this FS.(package private) voidDeferredIndexUpdates.addTodo(FSIndexRepositoryImpl ir, TOP fs) private StringXmiCasSerializer.XmiDocSerializer.arrayToString(TOP fsIn, int arrayType) Not called for StringArrayprivate booleanCASImpl.checkForInvalidFeatureSetting(TOP fs, int featCode) This is the method all normal FS feature "setters" call before doing the set operation on values where the range could be used as an index key.(package private) booleanCASImpl.checkForInvalidFeatureSetting(TOP fs, int featCode, FSsTobeAddedback toBeAdded) version for deserializers, and for set document language, using their own store for toBeAdded Doesn't report updating of corruptable slots.(package private) booleanCASImpl.checkForInvalidFeatureSetting(TOP fs, FSsTobeAddedback toBeAdded) version for deserializers, using their own store for toBeAdded and not bothering to check for particular features Doesn't report updating of corruptable slots.private booleanCASImpl.checkForInvalidFeatureSetting2(TOP fs) private final voidCASImpl.checkLowLevelParams(TOP fs, TypeImpl domType, int featCode) private intCasCompare.compareAllArrayElements(TOP fs1, TOP fs2, int len, IntUnaryOperator c, TypeImpl callerTi, FeatureImpl callerFi) private intCasCompare.compareFeature(TOP fs1, TOP fs2, TypeImpl ti1, FeatureImpl fi1) private intCasCompare.compareFss(TOP fs1, TOP fs2, TypeImpl callerTi, FeatureImpl callerFi) To work with Java sort, must implement the comparator contract: - compare(x, y) must be opposite compare(y, x) - compare(x, y) invalid input: '<' 0 invalid input: '&'invalid input: '&' compare(y, z) invalid input: '<' 0 implies compare(x, z) invalid input: '<' 0 - compare(x, y) == 0 implies compare(x, z) same as compare(y, z) for any z Inner part of compareRefs; that other method adds: null-check type-mapping skips loop determination If not in a sort context, a miscompare generates messaging information.private intCasCompare.compareFssArray(TOP fs1, TOP fs2, TypeImpl callerTi, FeatureImpl callerFi) private intCasCompare.compareRefResult(TOP rfs1, TOP rfs2) Returning because recursion detected a loop.private intCasCompare.compareRefs(TOP rfs1, TOP rfs2, TypeImpl callerTi, FeatureImpl callerFi) Two uses cases supported: - comparing for sorting (within on type system) -- goal is to be able to compare two CASes --- ordering must guarantee that the equal FSs appear in the --- same order - comparing two FSs (maybe from different CASes) -- supporting missing types and features -- happens when the two type systems are different -- the missing types and features are ignored in the comparison Different reference chains This compare routine may be called recursively - use case: FS(a) has slot which is ref to FS(b) which has slot which is ref to FS(c) -- the type of a, b, c may all be different.private intCasCompare.compareSlot(TOP fs1, TOP fs2, FeatureImpl fi1, FeatureImpl fi2, TypeImpl ti1) private static intCASSerializer.convertArrayIndexToAuxHeapAddr(BinaryCasSerDes bcsd, int index, TOP fs, Obj2IntIdentityHashMap<TOP> fs2auxOffset) The offset in the modeled heaps:private static intCASSerializer.convertArrayIndexToMainHeapAddr(int index, TOP fs, Obj2IntIdentityHashMap<TOP> fs2addr) static CommonArrayFSstatic booleanCASImpl.copyFeatureExceptFsRef(TOP fsSrc, FeatureImpl fiSrc, TOP fsTgt, FeatureImpl fiTgt) Copies a feature from one fs to another FSs may be in different type systems Doesn't copy a feature ref, but instead returns false.private voidXmiCasDeserializer.XmiCasDeserializerHandler.deserializeFsRef(String featVal, FeatureImpl fi, TOP fs) private booleanCASImpl.doInvalidFeatSettingCheck(TOP fs) private voidXCASSerializer.XCASDocSerializer.encodeFeatures(TOP fs, AttributesImpl attrs) private List<XmlElementNameAndContents> XmiCasSerializer.XmiDocSerializer.encodeFeatures(TOP fs, AttributesImpl attrs, boolean insideListNode) Encode features of a regular (non-array) FS.voidEncode an individual FS.private voidEncode an individual FS.private voidXCASSerializer.XCASDocSerializer.encodeOutOfTypeSystemFeatures(TOP fs, AttributesImpl attrs) private booleanAdd an address to the queue.private voidXCASSerializer.XCASDocSerializer.enqueueArray(TOP[] fss, int sofaNum) (package private) intCasSerializerSupport.CasDocSerializer.enqueueCommon(TOP fs) private intCasSerializerSupport.CasDocSerializer.enqueueCommon(TOP fs, boolean doDeltaAndFilteringCheck) (package private) intCasSerializerSupport.CasDocSerializer.enqueueCommonWithoutDeltaAndFilteringCheck(TOP fs) private voidAllFSs.enqueueFeatures(TOP fs) private voidCasSerializerSupport.CasDocSerializer.enqueueFeatures(TOP fs) Enqueue all FSs reachable from features of the given FS.private voidXCASSerializer.XCASDocSerializer.enqueueFeatures(TOP fs, int heapValue) private voidprivate voidAdd Fs to toBeProcessed and set foundxxx bit - skip this if doesn't exist in target type systemprivate voidCasSerializerSupport.CasDocSerializer.enqueueFsAndMaybeFeatures(TOP fs) Enqueue an FS, and everything reachable from it.private voidXCASSerializer.XCASDocSerializer.enqueueIndexed(TOP fs, int indexRep) Same as enqueue, but for indexed FSs.(package private) voidCasSerializerSupport.CasDocSerializer.enqueueIndexedFs_only_not_features(int viewNumber, TOP fs) private voidXCASSerializer.XCASDocSerializer.enqueueOutOfTypeSystemFeatures(TOP fs) private StringFeaturePathImpl.evaluateBuiltInFunction(TOP returnFS) evaluate the built-in function for the returned FeatureStructureprivate voidBinaryCasSerDes.extractFsToV2Heaps(TOP fs, boolean isMarkSet, Obj2IntIdentityHashMap<TOP> fs2addr) called in fs._id order to populate heaps from all FSs.private voidBinaryCasSerDes4.Serializer.extractStrings(TOP fs) add strings to the optimizestrings object If delta, only process for fs's that are new; modified string values picked up when scanning FsChange itemsprivate voidXCASDeserializer.XCASDeserializerHandler.finalizeRefValue(int extId, TOP fs, FeatureImpl fi) Common code run at finalize time, to set ref values and handle out-of-typesystem dataprivate voidXmiCasDeserializer.XmiCasDeserializerHandler.finalizeRefValue(int xmiId, TOP fs, FeatureImpl fi) (package private) voidTypeSystemImpl.fixupFSArrayTypes(TypeImpl featRange, TOP arrayFs) When deserializing Xmi and XCAS, Arrays of Feature Structures are encoded as FSArray types, but they may have a more restrictive typing, e.g.private intXmiSerializationSharedData.getEncompassingFS(TOP nonsharedFS) static intBinaryCasSerDes.getFsSpaceReq(TOP fs, TypeImpl type) intTypeImpl.getFsSpaceReq(TOP fs) final intCASImpl.getNextFsId(TOP fs) private intCASImpl.SharedViewData.getNextFsId(TOP fs) The logic for this is: - normal - add 1 to the value of the previous which is kept in fsIdGenerator Update fsIdGenerator to be this id.XmiSerializationSharedData.getOutOfTypeSystemFeatures(TOP fs) Gets information about out-of-typesystem features that belong to an in-typesystem FS.private TOPFeaturePathImpl.getTargetFs(TOP fs) evaluates the internal feature path for the given FeatureStructure returnsprivate intBinaryCasSerDes6.getTgtSeqFromSrcFS(TOP fs) For Serialization only.private final StringXCASSerializer.XCASDocSerializer.getTypeName(TOP fs) Get the XMI ID to use for an FS.intCasSerializerSupport.CasDocSerializer.getXmiIdAsInt(TOP fs) (package private) intXmiSerializationSharedData.getXmiIdAsInt(TOP fs) private voidXmiCasDeserializer.XmiCasDeserializerHandler.handleFeatMultiValue(TOP fs, FeatureImpl fi, List<String> featVals) private intXmiCasDeserializer.XmiCasDeserializerHandler.handleFeatMultiValueFromName(Type type, TOP fs, String featName, ArrayList<String> featVals) called from endElement after collecting non-byte array element instances into a string list for a particular array or list feature (excluding oots and deferred FSs)private voidXmiCasDeserializer.XmiCasDeserializerHandler.handleFeatSingleValue(TOP fs, FeatureImpl fi, String featVal) private voidXCASDeserializer.XCASDeserializerHandler.handleFeature(Type type, TOP fs, String featName, String featValIn, boolean lenient) private voidXCASDeserializer.XCASDeserializerHandler.handleFeature(TOP fs, String featName, String featVal, boolean lenient) private intXmiCasDeserializer.XmiCasDeserializerHandler.handleFeatureFromName(TypeImpl type, TOP fs, String featName, String featVal, boolean isNewFS) Deserialize one feature called from readFS 751 called from processDeferred, to handle features specified as child elementsprivate static booleanCasSerializerSupport.isArrayOrList(TOP fs) (package private) booleanCASImpl.isInModifiedPreexisting(TOP fs) private booleanCasSerializerSupport.CasDocSerializer.isListElementsMultiplyReferenced(TOP listNode) For lists, see if this is a plain list - no loops - no other refs to list elements from outside the list -- if so, return false; add all the elements of the list to visited_not_yet_written, noting if they've already been added -- this indicates either a loop or another ref from outside, -- in either case, return true - tprivate booleanCasSerializerSupport.CasDocSerializer.isMultiRef_enqueue(FeatureImpl fi, TOP featVal, boolean alreadyVisited, boolean isListNode, boolean isListFeat) ordinary FSs referenced as features are not checked by this routine; this is only called for FSlists of various kinds, and fs arrays of various kinds Not all featValues should be enqueued; list or array features which are marked **NOT** multiple-refs-allowed are serialized in-line for JSON, when using dynamicMultiRef (the default), list / array FSs are serialized by ref (not in-line) if there are multiple refs to them for XMI and JSON, any FS ref marked as multiple-refs-allowed forces the item onto the ref "queue".private intBad name; check if we've seen this (address, value) before.private booleanBinaryCasSerDes6.isTypeInTgt(TOP fs) private booleanCasCompare.isTypeInTgt(TOP fs) private voidCASImpl.logFSUpdate(TOP fs, FeatureImpl fi) private voidCASImpl.logFSUpdate(TOP fs, FeatureImpl fi, int arrayIndexStart, int nbrOfConsecutive) private voidCASImpl.logFSUpdate(TOP fs, PositiveIntSet indexesPlus1) voidCASImpl.maybeAddback(TOP fs) Only called if there was something removed that needs to be added back skip the addback (to defer it until later) if: - running in block mode (you can tell this if svd.fssTobeAddedback.size() > 0) or if running in block mode, the add back is delayed until the end of the blockprivate voidBinaryCasSerDes6.maybeStoreOrDefer(boolean storeIt, TOP fs, Consumer<TOP> doStore) private voidCasCompare.mismatchFs(TOP fs1, TOP fs2, String msg, TypeImpl callerTi, FeatureImpl callerFi) private voidCasCompare.mismatchFs(TOP fs1, TOP fs2, Feature fi, Feature fi2) private voidCasCompare.mismatchFs(TOP fs1, TOP fs2, TypeImpl callerTi, FeatureImpl callerFi) private TOPCASImpl.pearConvert(TOP fs, FsGenerator3 g) Inner method - after determining there is a generator First see if already have generated the pear version, and if so, use that.private String(package private) voidput but assert wasn't there before(package private) void(package private) voidmake an id map to an fs, asserting there was a previous mapping for this id(package private) voidId2FS.putUnconditionally(TOP fs) Skips the assert that the item wasn't already presentprivate voidBinaryCasSerDes6.readByKind(TOP fs, FeatureImpl tgtFeat, FeatureImpl srcFeat, boolean storeIt, TypeImpl tgtType) private voidXmiCasDeserializer.XmiCasDeserializerHandler.readFS(TOP fs, Attributes attrs, boolean isNewFs) private voidBinaryCasSerDes4.Deserializer.ReadModifiedFSs.readModifiedAuxHeap(int numberOfMods, TOP fs, TypeImpl type) private voidBinaryCasSerDes6.ReadModifiedFSs.readModifiedAuxHeap(int numberOfMods, TOP fs, TypeImpl srcType) private voidBinaryCasSerDes4.Deserializer.ReadModifiedFSs.readModifiedMainHeap(int numberOfMods, TOP fs, TypeImpl type) private voidBinaryCasSerDes6.ReadModifiedFSs.readModifiedMainHeap(int numberOfMods, TOP fs, TypeImpl srcType) This used for both int/float/string/fs arrays and int/float/string and other feature slots Also used for Long/Double reading(package private) voidFSsTobeAddedback.FSsTobeAddedbackMultiple.recordRemove(TOP fs, FSIndexRepositoryImpl view) (package private) voidFSsTobeAddedback.FSsTobeAddedbackSingle.recordRemove(TOP fs, FSIndexRepositoryImpl view) in single, the fs is ignored(package private) voidFSsTobeAddedback.FSsTobeAddedbackSingle.recordRemove(TOP fs, FSIndexRepositoryImpl view, int count) (package private) voidFSsTobeAddedback.recordRemove(TOP fs, FSIndexRepositoryImpl view) (package private) voidFSsTobeAddedback.recordRemove(TOP fs, FSIndexRepositoryImpl view, int count) private booleanCASImpl.removeAndRecord(TOP fs, FSIndexRepositoryImpl ir, FSsTobeAddedback toBeAdded, boolean isSkipBagIndex) remove a FS from all indexes in this view (except bag indexes, if isSkipBagIndex is true)(package private) booleanCASImpl.removeFromCorruptableIndexAnyView(TOP fs, FSsTobeAddedback toBeAdded) (package private) booleanCASImpl.removeFromIndexAnyView(TOP fs, FSsTobeAddedback toBeAdded, boolean isSkipBagIndexes) This might be called from low level set int value, if we support switching types, and we want to remove the old type from all indexes.(package private) booleanFSIndexRepositoryImpl.removeFS_ret(TOP fs, boolean skipBagIndexes) Common remove FS code; all remove operations call this, except bulk remove (flush and removeall...) Removes FS from all indexes in this view (except bag if skipBagIndexes is true)(package private) voidcalled when returning from compare with equal result If a loop exists, and the item being removed is the one that started the loopback, reset the loop info.private voidBinaryCasSerDes4.Serializer.serializeArray(TOP fs) private voidBinaryCasSerDes6.serializeArray(TOP fs) private intBinaryCasSerDes4.Serializer.serializeArrayLength(TOP fs) private voidBinaryCasSerDes4.Serializer.serializeByKind(TOP fs, FeatureImpl feat) private voidBinaryCasSerDes6.serializeByKind(TOP fs, FeatureImpl feat) serialize one feature structure, which is guaranteed not to be null guaranteed to exist in target if there is type mapping Caller iterates over target slots, but the feat arg is for the corresponding src featureprivate voidBinaryCasSerDes6.serializeDiffWithPrevTypeSlot(SlotKinds.SlotKind kind, TOP fs, FeatureImpl feat, int newValue) (package private) void(package private) voidCASImpl.setFeatureValue(int fsRef, int featureCode, TOP value) static voidCASImpl.setFeatureValueMaybeSofa(TOP fs, FeatureImpl feat, TOP value) internal use - special setter for setting feature values, including special handling if the feature is for the sofaArray, when deserializingprivate voidCASImpl.setId2FsMaybeUnconditionally(TOP fs) private voidFeaturePathImpl.setTargetFeature(TOP currentFs, int i) final voidCASImpl.setWithCheckAndJournal(TOP fs, int featCode, Runnable setter) (package private) final voidCASImpl.setWithCheckAndJournal(TOP fs, FeatureImpl fi, Runnable setter) SelectFSs_impl.singleOrNull(TOP fs) SelectFSs_impl.singleOrNull(TOP fs, int offset) CasCompare.sort_dedup_FSArray(TOP fs, Feature feat) This is an optional pre-compare operation.private intCasCompare.sortCompare(TOP scFs1, TOP scFs2) Used for sorting within one type system, for two instances of the same type Uses field isSrcCas (boolean) to differentiate when being used to sort for srcCas vs tgtCas When sorting where type mapping is happening between source and target CASs, skip compares for features which are not in the opposite CAS.private voidCASImpl.switchFsType(TOP fs, int value) (package private) voidCASImpl.traceIndexMod(boolean isAdd, TOP fs, boolean isAddbackOrSkipBag) private booleanBinaryCasSerDes.updateStringFeature(TOP fs, FeatureImpl feat, String s, List<Runnable> fixups4forwardFsRefs) protected abstract voidCasSerializerSupport.CasSerializerSupportSerialize.writeArrays(TOP fsarray, int typeCode, int typeClass) protected voidXmiCasSerializer.XmiDocSerializer.writeArrays(TOP fsArray, int typeCode, int typeClass) private voidprotected abstract voidprotected voidprivate voidXmiCasSerializer.XmiDocSerializer.writeFsOrLists(TOP fs, int typeCode, boolean isListAsFSs) protected abstract voidCasSerializerSupport.CasSerializerSupportSerialize.writeFsRef(TOP fs) protected voidXmiCasSerializer.XmiDocSerializer.writeFsRef(TOP fs) protected abstract booleanCasSerializerSupport.CasSerializerSupportSerialize.writeFsStart(TOP fs, int typeCode) protected booleanXmiCasSerializer.XmiDocSerializer.writeFsStart(TOP fs, int typeCode) protected abstract voidCasSerializerSupport.CasSerializerSupportSerialize.writeListsAsIndividualFSs(TOP fs, int typeCode) protected voidXmiCasSerializer.XmiDocSerializer.writeListsAsIndividualFSs(TOP fs, int typeCode) Method parameters in org.apache.uima.cas.impl with type arguments of type TOPModifier and TypeMethodDescription(package private) voidFSIndexRepositoryImpl.IndexesForType.add(FsIndex_iicp<TOP> iicp) (package private) voidBinaryCasSerDes.addIdsToIntVector(Collection<TOP> fss, IntVector v, Obj2IntIdentityHashMap<TOP> fs2addr) (package private) voidBinaryCasSerDes.addIdsToIntVector(Collection<TOP> fss, IntVector v, Obj2IntIdentityHashMap<TOP> fs2addr) (package private) voidBinaryCasSerDes.addIdsToIntVector(Set<TOP> fss, IntVector v, Obj2IntIdentityHashMap<TOP> fs2addr) (package private) voidBinaryCasSerDes.addIdsToIntVector(Set<TOP> fss, IntVector v, Obj2IntIdentityHashMap<TOP> fs2addr) voidBefore comparing, you can adjust specific features of specific types, arbitrarily.private voidCasCompare.applyToTypeFeature_inner(CASImpl cas, String typeName, String featureBaseName, Consumer2<TOP, Feature> c) private voidCasCompare.convert_linear_lists_to_arrays(ArrayList<TOP> fss) private static intCASSerializer.convertArrayIndexToAuxHeapAddr(BinaryCasSerDes bcsd, int index, TOP fs, Obj2IntIdentityHashMap<TOP> fs2auxOffset) The offset in the modeled heaps:private static intCASSerializer.convertArrayIndexToMainHeapAddr(int index, TOP fs, Obj2IntIdentityHashMap<TOP> fs2addr) static final MutableCallSiteTypeSystemImpl.createCallSite(Class<? extends TOP> clazz, String featName) Creates and returns a new MutableCallSite, // * recording it in list of all callsites for this type, in a map by typename // * // * Done this way because // * - can't be a classloader-wide list of call sites - some might not be associated with this type system // * - can't be a typesystem-wide list of call sites - the JCas class might be used by multiple type systems // * and the first one to load it would set this value.static final MutableCallSiteTypeSystemImpl.createCallSiteForBuiltIn(Class<? extends TOP> clazz, String featName) INTERNAL API - DO NOT USE, MAY CHANGE WITHOUT NOTICE!private static FSClassRegistry.JCasClassInfoFSClassRegistry.createJCasClassInfo(Class<? extends TOP> jcasClass, TypeImpl ti, int jcasType, MethodHandles.Lookup lookup) Called after succeeding at loading, once per load for an exact matching JCas Class - class was already checked to insure is of proper type for JCas - skips creating-generator-for-Sofa - since "new Sofa(...)" is not a valid way to create a sofaprivate voidprivate voidXCASSerializer.XCASDocSerializer.enqueueCollection(Collection<TOP> fss, int sofaNum) private voidCasSerializerSupport.CasDocSerializer.enqueueFeaturesOfFSs(List<TOP> fss) private voidCasSerializerSupport.CasDocSerializer.enqueueFSListElements(FSList<TOP> node) Enqueues all Head values of FSList reachable from an FSList.private voidBinaryCasSerDes.extractFsToV2Heaps(TOP fs, boolean isMarkSet, Obj2IntIdentityHashMap<TOP> fs2addr) called in fs._id order to populate heaps from all FSs.CASImpl.filterAboveMark(List<TOP> all, MarkerImpl mark) private voidBinaryCasSerDes.BinDeserSupport.findCorrespondingFs(int heapAddr, Int2ObjHashMap<TOP, TOP> addr2fs) Given a heap addr which may be in the middle of a FS, find the FS it belongs to and set up things in the bds.private voidBinaryCasSerDes.BinDeserSupport.findCorrespondingFs(int heapAddr, Int2ObjHashMap<TOP, TOP> addr2fs) Given a heap addr which may be in the middle of a FS, find the FS it belongs to and set up things in the bds.(package private) int[]BinaryCasSerDes.getDeltaIndexedFSs(MarkerImpl mark, Obj2IntIdentityHashMap<TOP> fs2addr) private voidAllFSs.getFSsForView(Collection<TOP> fss) (package private) int[]BinaryCasSerDes.getIndexedFSs(Obj2IntIdentityHashMap<TOP> fs2addr) Serialization support *private SofaBinaryCasSerDes.getSofaFromAnnotBase(int annotBaseAddr, StringHeap stringHeap2, Int2ObjHashMap<TOP, TOP> addr2fs, CommonSerDesSequential csds) private SofaBinaryCasSerDes.getSofaFromAnnotBase(int annotBaseAddr, StringHeap stringHeap2, Int2ObjHashMap<TOP, TOP> addr2fs, CommonSerDesSequential csds) private TOP[]XmiSerializationSharedData.getSortedKeys(Map<TOP, ?> map) default <U extends T>
LowLevelIndex<U> LowLevelIndex.getSubIndex(Class<? extends TOP> clazz) FSIndexRepositoryImpl.getUpdatedFSs(Set<TOP> items) private voidBinaryCasSerDes.BinDeserSupport.maybeAddBackAndRemoveFs(int heapAddr, Int2ObjHashMap<TOP, TOP> addr2fs) for Deserialization of Delta, when updating existing FSs, If the heap addr is for the next FS, re-add the previous one to those indexes where it was removed, and then maybe remove the new one (and remember which views to re-add to).private voidBinaryCasSerDes.BinDeserSupport.maybeAddBackAndRemoveFs(int heapAddr, Int2ObjHashMap<TOP, TOP> addr2fs) for Deserialization of Delta, when updating existing FSs, If the heap addr is for the next FS, re-add the previous one to those indexes where it was removed, and then maybe remove the new one (and remember which views to re-add to).(package private) TOPXCASDeserializer.XCASDeserializerHandler.maybeCreateWithV2Id(int id, Supplier<TOP> create) private voidBinaryCasSerDes4.Deserializer.maybeStoreOrDefer(Consumer<TOP> storeAction) Maybe defers setting features for a Feature Structure if the FS isn't created yet (perhaps because it needs a sofa ref, not yet read)private voidBinaryCasSerDes6.maybeStoreOrDefer(boolean storeIt, TOP fs, Consumer<TOP> doStore) private voidBinaryCasSerDes4.Deserializer.maybeStoreOrDefer_slotFixups(int tgtSeq, Consumer<TOP> r) FS Ref slots fixupsprivate voidBinaryCasSerDes6.maybeStoreOrDefer_slotFixups(int tgtSeq, Consumer<TOP> r) FS Ref slots fixupsprivate voidBinaryCasSerDes6.processFSsForView(boolean isEnqueue, Stream<TOP> fss) processes one view's worth of feature structures(package private) voidBinaryCasSerDes.reinitDeltaIndexedFSsInner(FSIndexRepositoryImpl ir, int[] fsindexes, int idx, int length, boolean isAdd, IntFunction<TOP> getFsFromAddr) Given a list of FSs and a starting index and length: iterate over the FSs, and add or remove that from the indexes.(package private) voidBinaryCasSerDes.reinitIndexedFSs(int[] fsIndex, boolean isDeltaMods, IntFunction<TOP> getFsFromAddr) This routine is used by several of the deserializers.(package private) voidBinaryCasSerDes.reinitIndexedFSs(int[] fsIndex, boolean isDeltaMods, IntFunction<TOP> getFsFromAddr, int numViews, int idx) (package private) voidBinaryCasSerDes.reinitIndexedFSs(int[] fsIndex, boolean isDeltaMods, IntFunction<TOP> getFsFromAddr, IntFunction<TOP> getSofaFromAddr) (package private) intBinaryCasSerDes.reinitIndexedFSsSofas(int[] fsIndex, boolean isDeltaMods, IntFunction<TOP> getFsFromAddr) (package private) static voidCASSerializer.scanModifications(BinaryCasSerDes bcsd, CommonSerDesSequential csds, CASImpl.FsChange[] fssModified, Obj2IntIdentityHashMap<TOP> fs2auxOffset, List<CASSerializer.AddrPlusValue> chgMainAvs, List<CASSerializer.AddrPlusValue> chgByteAvs, List<CASSerializer.AddrPlusValue> chgShortAvs, List<CASSerializer.AddrPlusValue> chgLongAvs) Scan the v3 fsChange info and produce v2 style info into chgXxxAddr, chgXxxValue A prescan approach is needed in order to write the number of modifications preceding the write of the values (which unfortunately were written to the same stream in V2).private voidFSIndexRepositoryImpl.setCachedComparator(FSComparators withId, FSComparators withTypeOrder, Comparator<TOP> c) private voidBinaryCasSerDes.setFeatOrDefer(int heapIndex, FeatureImpl feat, List<Runnable> fixups4forwardFsRefs, Consumer<TOP> setter, Int2ObjHashMap<TOP, TOP> addr2fs) private voidBinaryCasSerDes.setFeatOrDefer(int heapIndex, FeatureImpl feat, List<Runnable> fixups4forwardFsRefs, Consumer<TOP> setter, Int2ObjHashMap<TOP, TOP> addr2fs) private voidBinaryCasSerDes.setFeatOrDefer(int heapIndex, FeatureImpl feat, List<Runnable> fixups4forwardFsRefs, Consumer<TOP> setter, Int2ObjHashMap<TOP, TOP> addr2fs) private voidcalled to sort all the FSs before doing the equality comparesFSIndexRepositoryImpl.streamNonEmptyIndexes(Class<? extends TOP> clazz) CasCompare.type_feature_to_runnable(String typeName, String featureBaseName, BiFunction<TOP, Feature, Runnable> c) Before comparing, you can create pending values for specific types / features, and return a list of runnables, which when run, plug in those pending values.CasCompare.type_feature_to_runnable(CASImpl cas, String typeName, String featureBaseName, BiFunction<TOP, Feature, Runnable> c) (package private) intBinaryCasSerDes.updateAuxArrayMods(CommonSerDes.Reading r, Int2ObjHashMap<TOP, TOP> auxAddr2fsa, Consumer_T_int_withIOException<TOP> setter) Called 3 times to process non-compressed binary deserialization of aux array modifications - once for byte/boolean, short, and long/double(package private) intBinaryCasSerDes.updateAuxArrayMods(CommonSerDes.Reading r, Int2ObjHashMap<TOP, TOP> auxAddr2fsa, Consumer_T_int_withIOException<TOP> setter) Called 3 times to process non-compressed binary deserialization of aux array modifications - once for byte/boolean, short, and long/double(package private) intBinaryCasSerDes.updateAuxArrayMods(CommonSerDes.Reading r, Int2ObjHashMap<TOP, TOP> auxAddr2fsa, Consumer_T_int_withIOException<TOP> setter) Called 3 times to process non-compressed binary deserialization of aux array modifications - once for byte/boolean, short, and long/doubleprivate voidBinaryCasSerDes.updateHeapSlot(BinaryCasSerDes.BinDeserSupport bds, int slotAddr, int slotValue, Int2ObjHashMap<TOP, TOP> addr2fs) Doing updates for delta cas for existing objects.private voidBinaryCasSerDes.updateHeapSlot(BinaryCasSerDes.BinDeserSupport bds, int slotAddr, int slotValue, Int2ObjHashMap<TOP, TOP> addr2fs) Doing updates for delta cas for existing objects.private static voidFSClassRegistry.updateOrValidateAllCallSitesForJCasClass(Class<? extends TOP> clazz, TypeImpl type, ArrayList<MutableCallSite> callSites_toSync) Called once when the JCasClassInfo is created.voidFSIndexRepositoryImpl.walkIndexedFSs(Consumer<TOP> action) For this view, walk the indexed FSs in arbitrary order.CASImpl.walkReachablePlusFSsSorted(Consumer<TOP> action_filtered, MarkerImpl mark, Predicate<TOP> includeFilter, CasTypeSystemMapper typeMapper) find all of the FSs via the indexes plus what's reachable.CASImpl.walkReachablePlusFSsSorted(Consumer<TOP> action_filtered, MarkerImpl mark, Predicate<TOP> includeFilter, CasTypeSystemMapper typeMapper) find all of the FSs via the indexes plus what's reachable.voidFSIndexRepositoryImpl.walkSortedIndexedFSs(Consumer<TOP> action) For this view, walk the indexed FSs, sorted by id (e.g.protected abstract voidCasSerializerSupport.CasSerializerSupportSerialize.writeView(Sofa sofa, Collection<TOP> members) protected abstract voidCasSerializerSupport.CasSerializerSupportSerialize.writeView(Sofa sofa, Collection<TOP> added, Collection<TOP> deleted, Collection<TOP> reindexed) protected voidXmiCasSerializer.XmiDocSerializer.writeView(Sofa sofa, Collection<TOP> members) protected voidXmiCasSerializer.XmiDocSerializer.writeView(Sofa sofa, Collection<TOP> added, Collection<TOP> deleted, Collection<TOP> reindexed) private voidXmiCasSerializer.XmiDocSerializer.writeViewForDeltas(String kind, Collection<TOP> deltaMembers) private booleanXmiCasSerializer.XmiDocSerializer.writeViewMembers(StringBuilder sb, Collection<TOP> members) Constructors in org.apache.uima.cas.impl with parameters of type TOPModifierConstructorDescription(package private)privateConstructor parameters in org.apache.uima.cas.impl with type arguments of type TOPModifierConstructorDescription(package private)AllFSs(CASImpl cas, MarkerImpl mark, Predicate<TOP> includeFilter, CasTypeSystemMapper typeMapper) CasSeqAddrMaps(List<TOP> tgtSeq2SrcFs, Int2IntRBT srcAddr2TgtSeq) FsIndex_snapshot(FsIndex_iicp<T> wrapped, Comparator<TOP> comparatorWithoutId, Comparator<TOP> comparatorTypeWithoutId) (package private)FsIterator_aggregation_common(LowLevelIterator<T>[] iterators, FSIndex<T> index, Comparator<TOP> comparatorMaybeNoTypeWithoutId) FsIterator_multiple_indexes(LowLevelIndex<T> main_idx, LowLevelIterator<T>[] iterators, Comparator<TOP> comparatorMaybeNoTypeWithoutId) (package private)FsIterator_set_sorted_pear(FsIndex_set_sorted<T> ll_index, CopyOnWriteIndexPart cow_wrapper, Comparator<TOP> comparatorMaybeNoTypeWithoutID) FsIterator_set_sorted2(FsIndex_set_sorted<T> ll_index, CopyOnWriteIndexPart cow_wrapper, Comparator<TOP> comparatorMaybeNoTypeWithoutID) FsIterator_subtypes_ordered(FsIndex_iicp<T> iicp, Comparator<TOP> comparatorMaybeNoTypeWithoutId) FsIterator_subtypes_snapshot(FsIndex_flat<T> flatIndex, Comparator<TOP> comparatorMaybeNoTypeWithoutId) FsIterator_subtypes_snapshot(T[] snapshot, LowLevelIndex<T> index, boolean is_unordered, Comparator<TOP> comparatorMaybeNoTypeWithoutId) Alternative source iterator, 1st arg is different (not an "index", just an array) - altSources are unordered, and NoType is ignored - also supports backwards iterators, these are ordered (Maybe fix this in the future - this is not necessarily required)(package private)JCasClassInfo(Class<? extends TOP> jcasClass, FsGenerator3 generator, int jcasType) privateReuseInfo(PositiveIntSet foundFSs, List<TOP> fssToSerialize, CasSeqAddrMaps fsStartIndexes) -
Uses of TOP in org.apache.uima.examples
Subclasses of TOP in org.apache.uima.examplesModifier and TypeClassDescriptionclassStores detailed information about the original source document from which the current CAS was initialized. -
Uses of TOP in org.apache.uima.internal.util
Fields in org.apache.uima.internal.util declared as TOPModifier and TypeFieldDescription(package private) TOP[]OrderedFsSet_array.a(package private) TOP[]OrderedFsSet_array2.aprivate final TOPOrderedFsSet_array2.SubSet.firstElementInRangeprivate final TOPOrderedFsSet_array2.SubSet.fromElementprivate TOPOrderedFsSet_array2.highestprivate final TOPOrderedFsSet_array2.SubSet.lastElementInRangeprivate final TOPOrderedFsSet_array2.SubSet.toElementFields in org.apache.uima.internal.util with type parameters of type TOPModifier and TypeFieldDescriptionOrderedFsSet_array2.batchprivate final Comparator<TOP> OrderedFsSet_array.comparatorNoTypeWithIDprivate final Comparator<TOP> OrderedFsSet_array.comparatorNoTypeWithoutIDfinal Comparator<TOP> OrderedFsSet_array2.comparatorWithIDfinal Comparator<TOP> OrderedFsSet_array2.comparatorWithoutIDMethods in org.apache.uima.internal.util that return TOPModifier and TypeMethodDescriptionOrderedFsSet_array2.first()OrderedFsSet_array2.SubSet.first()OrderedFsSet_array2.last()OrderedFsSet_array2.SubSet.last()OrderedFsSet_array2.pollFirst()OrderedFsSet_array2.SubSet.pollFirst()OrderedFsSet_array2.pollLast()OrderedFsSet_array2.SubSet.pollLast()TOP[]OrderedFsSet_array.toArray()Methods in org.apache.uima.internal.util that return types with arguments of type TOPModifier and TypeMethodDescriptionComparator<? super TOP> OrderedFsSet_array2.comparator()Comparator<? super TOP> OrderedFsSet_array2.SubSet.comparator()OrderedFsSet_array2.descendingIterator()OrderedFsSet_array2.SubSet.descendingIterator()OrderedFsSet_array2.descendingSet()OrderedFsSet_array2.SubSet.descendingSet()OrderedFsSet_array2.iterator()OrderedFsSet_array2.SubSet.iterator()OrderedFsSet_array2.subSet(TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive) OrderedFsSet_array2.SubSet.subSet(TOP fromElement1, boolean fromInclusive1, TOP toElement1, boolean toInclusive1) Methods in org.apache.uima.internal.util with parameters of type TOPModifier and TypeMethodDescriptionbooleanNote: doesn't implement the return value; always returns true;booleanprivate voidOrderedFsSet_array2.addNewHighest(TOP fs) intOrderedFsSet_array.binarySearch(TOP[] _a, int start, int end, TOP fs, Comparator<TOP> _comparatorWithID) private intOrderedFsSet_array2.binarySearch(TOP fs) Special version of binary search that ignores null valuesstatic intOrderedFsSet_array2.binarySearch(TOP fs, int start, int end, TOP[] _a, int _nullBlockStart, int _nullBlockEnd, Comparator<TOP> _comparatorWithID) At the start, the start and end positions are guaranteed to refer to non-null entries But during operation, lower may refer to "null" entries (upper always non-null)intOrderedFsSet_array.binarySearchLeftMostEqual(TOP fs, int start, int end, Comparator<TOP> comparator) Guaranteed by caller to have an equal (withoutID) item, but might be the "end" item searching up to find it.intOrderedFsSet_array2.ceilingPos(TOP fs) intOrderedFsSet_array.find(TOP fs, Comparator<TOP> comparator) private intNever returns an index to a "null" (deleted) item.private intOrderedFsSet_array2.findRemaining(TOP fs) find, within constricted range: start: a_firstUsedslot, end = nullBlockStartintOrderedFsSet_array.findWithoutID(TOP fs) using NoType because all callers of this have already used the type of fs to select the right index.intintprivate voidOrderedFsSet_array2.insertItem(int indexToUpdate, TOP itemToAdd) side effects: increment size reset a_firstUsedslot if adding in front ( a_nextFreeslot not updated, because this method only called to inserting before end ) nullBlockEnd reduced conditionally lastRemovedPos is reset if that position is usedprivate booleanprivate booleanprivate booleanprivate booleanOrderedFsSet_array2.SubSet.isInRangeHigher(TOP fs) private booleanOrderedFsSet_array2.SubSet.isInRangeLower(TOP fs) private booleanprivate booleanintOrderedFsSet_array2.subSet(TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive) OrderedFsSet_array2.SubSet.subSet(TOP fromElement1, boolean fromInclusive1, TOP toElement1, boolean toInclusive1) Method parameters in org.apache.uima.internal.util with type arguments of type TOPModifier and TypeMethodDescriptionbooleanOrderedFsSet_array.add(T fs1, Comparator<TOP> comparator) booleanOrderedFsSet_array2.addAll(Collection<? extends TOP> c) booleanOrderedFsSet_array2.SubSet.addAll(Collection<? extends TOP> c) intOrderedFsSet_array.binarySearch(TOP[] _a, int start, int end, TOP fs, Comparator<TOP> _comparatorWithID) static intOrderedFsSet_array2.binarySearch(TOP fs, int start, int end, TOP[] _a, int _nullBlockStart, int _nullBlockEnd, Comparator<TOP> _comparatorWithID) At the start, the start and end positions are guaranteed to refer to non-null entries But during operation, lower may refer to "null" entries (upper always non-null)intOrderedFsSet_array.binarySearchLeftMostEqual(TOP fs, int start, int end, Comparator<TOP> comparator) Guaranteed by caller to have an equal (withoutID) item, but might be the "end" item searching up to find it.intOrderedFsSet_array.find(TOP fs, Comparator<TOP> comparator) Constructors in org.apache.uima.internal.util with parameters of type TOPModifierConstructorDescription(package private)SubSet(Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive) (package private)SubSet(Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive, boolean doTest, Comparator<TOP> comparator) Constructor parameters in org.apache.uima.internal.util with type arguments of type TOPModifierConstructorDescriptionOrderedFsSet_array(Comparator<TOP> comparatorNoTypeWithID, Comparator<TOP> comparatorNoTypeWithoutID) OrderedFsSet_array2(Comparator<TOP> comparatorWithID, Comparator<TOP> comparatorWithoutID) (package private)SubSet(Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive, boolean doTest, Comparator<TOP> comparator) -
Uses of TOP in org.apache.uima.jcas
Fields in org.apache.uima.jcas with type parameters of type TOPModifier and TypeFieldDescriptionprivate static final ArrayList<JCasRegistry.WeakRefInt<Class<? extends TOP>>> JCasRegistry.loadedJCasClassesTheargument say the type is a class, which extends TOP private static final ReferenceQueue<Class<? extends TOP>> JCasRegistry.releasedQueueMethods in org.apache.uima.jcas with type parameters of type TOPModifier and TypeMethodDescriptiondefault <T extends TOP>
CommonArrayFSJCas.emptyArray(Class<T> clazz) JCas.emptyFSArray(Class<T> clazz) Retrieve a lazily-created constant from the cas which holds a 0-length instance of a subtype of FSArray.default <T extends TOP>
EmptyFSList<T> JCas.emptyFSList()<T extends TOP>
FSIterator<T> JCas.getAllIndexedFS(Class<T> clazz) Gets an iterator over all indexed FeatureStructures of the specified Type (and any of its subtypes).default <T extends TOP>
FSIterator<T> JCas.getAllIndexedFS(Type type) Gets an iterator over all indexed FeatureStructures of the specified Type (and any of its subtypes).<T extends TOP>
FSIterator<T> JFSIndexRepository.getAllIndexedFS(int aType) Gets an iterator over all indexed FeatureStructures of the specified Type (and any of its subtypes).<T extends TOP>
FSIterator<T> JFSIndexRepository.getAllIndexedFS(Type aType) Gets an iterator over all indexed FeatureStructures of the specified Type (and any of its subtypes).Retrieve an index according to a label and a type specified using a JCas class.Retrieve an index according to a label.Retrieve an index according to a label and a type.default <T extends TOP>
Collection<T> JCas.getIndexedFSs(Class<T> clazz) Returns an unmodifiable collection of all the FSs that are indexed in this view, in an arbitrary order.default <T extends TOP>
Collection<T> JCas.getIndexedFSs(Type type) Returns an unmodifiable collection of all the FSs that are indexed in this view, in an arbitrary order.default <T extends TOP>
TJCas.getJfsFromCaddr(int casAddr) default <T extends TOP>
voidJCas.removeAllExcludingSubtypes(Class<T> clazz) Remove all instances of just this type, excluding subtypes, from all indexes in the repository view.default <T extends TOP>
voidJCas.removeAllIncludingSubtypes(Class<T> clazz) Remove all instances of type, including all subtypes from all indexes in the repository view.JCas.select()JCas.select(int jcasType) Methods in org.apache.uima.jcas that return TOPMethods in org.apache.uima.jcas that return types with arguments of type TOPModifier and TypeMethodDescriptionJCasRegistry.getClassForIndex(int aIndex) Used for error message: When a particular loaded type system is missing the type that corresponds to a loaded JCas class (perhaps that class was loaded when another type system was being used, or it was just referred to in Java code (which causes it to be loaded) then the error message uses this to get the class to be able to print the class name Gets the JCas cover class for a given index.default Collection<TOP> JCas.getIndexedFSs()Returns an unmodifiable collection of all of the FSs that are indexed in this view, in an arbitrary order.JFSIndexRepository.getIndexes()Get all indexes in this repository.Methods in org.apache.uima.jcas with parameters of type TOPModifier and TypeMethodDescriptionDeprecated.use instance.jcasType instead - fasterMethod parameters in org.apache.uima.jcas with type arguments of type TOP -
Uses of TOP in org.apache.uima.jcas.cas
Classes in org.apache.uima.jcas.cas with type parameters of type TOPModifier and TypeClassDescriptionclassEmptyFSList<T extends TOP>classFSArrayList<T extends TOP>An ArrayList type containing Feature Structures, for UIMA Has all the methods of List Implements the select(...) APIsclassa hash set of Feature Structures Is Pear aware - stores non-pear versions but may return pear version in pear contexts Updated by JCasGen Fri Jan 20 11:55:59 EST 2017 XML source: C:/au/svnCheckouts/branches/uimaj/v3-alpha/uimaj-types/src/main/descriptors/java_object_type_descriptors.xmlclassFSLinkedHashSet<T extends TOP>a hash set of Feature Structures Is Pear aware - stores non-pear versions but may return pear version in pear contexts Updated by JCasGen Fri Jan 20 11:55:59 EST 2017 XML source: C:/au/svnCheckouts/branches/uimaj/v3-alpha/uimaj-types/src/main/descriptors/java_object_type_descriptors.xmlclassT extends TOP, v2 already mandated TOP for set/getclassA map from ints to Feature Structures Is Pear aware - stores non-pear versions but may return pear version in pear contextsclassNonEmptyFSList<T extends TOP>Subclasses of TOP in org.apache.uima.jcas.casModifier and TypeClassDescriptionclassthe JCas class model for the CAS type uima.cas.AnnotationBase.final classJCas class model for BooleanArrayfinal classJCas class model for ByteArrayfinal classJCas class model for DoubleArrayclassclassEmptyFSList<T extends TOP>classclassfinal classJava Cas model for Cas FloatArray.classfinal classFSArray<T extends FeatureStructure>Java Class model for Cas FSArray type extends FeatureStructure for backwards compatibility when using FSArray with no typing.classFSArrayList<T extends TOP>An ArrayList type containing Feature Structures, for UIMA Has all the methods of List Implements the select(...) APIsclassa hash set of Feature Structures Is Pear aware - stores non-pear versions but may return pear version in pear contexts Updated by JCasGen Fri Jan 20 11:55:59 EST 2017 XML source: C:/au/svnCheckouts/branches/uimaj/v3-alpha/uimaj-types/src/main/descriptors/java_object_type_descriptors.xmlclassFSLinkedHashSet<T extends TOP>a hash set of Feature Structures Is Pear aware - stores non-pear versions but may return pear version in pear contexts Updated by JCasGen Fri Jan 20 11:55:59 EST 2017 XML source: C:/au/svnCheckouts/branches/uimaj/v3-alpha/uimaj-types/src/main/descriptors/java_object_type_descriptors.xmlclassT extends TOP, v2 already mandated TOP for set/getclassA map from ints to Feature Structures Is Pear aware - stores non-pear versions but may return pear version in pear contextsfinal classThe Java Class model corresponding to the Cas IntegerArray_JCasImpl type.classAn ArrayList type containing ints, for UIMA - implements a subset of the List API, Iterable<Integer>, IntListIterator.classfinal classJCas class model for LongArrayclassclassNonEmptyFSList<T extends TOP>classclassfinal classJCas class model for ShortArrayclassfinal classJCas class model for StringArrayclassFields in org.apache.uima.jcas.cas declared as TOPModifier and TypeFieldDescriptionstatic final TOPTOP._singletonInternal use - used as removed marker in mapsprivate final TOP[]FSArray.theArrayFields in org.apache.uima.jcas.cas with type parameters of type TOPModifier and TypeFieldDescriptionFSArrayList.EMPTY_LISTThe Constant EMPTY_LIST.private final Int2ObjHashMap<TOP, T> Int2FS.int2FSMethods in org.apache.uima.jcas.cas with type parameters of type TOPModifier and TypeMethodDescriptionstatic <E extends TOP,F extends FeatureStructure>
FSArrayList<E> Convenience - create a FSArrayList from an existing Array.static <U extends TOP,E extends FeatureStructure>
FSList<U> Create an FSList from an existing array of Feature Structures<U extends TOP>
U[]FSArray.toArray(U[] a) Methods in org.apache.uima.jcas.cas that return TOPModifier and TypeMethodDescriptionstatic TOPTOP._createJCasHashMapReserve(int id) for internal use only, creates a reserved markerstatic TOPTOP._createSearchKey(int id) TOP[]FSArray._getTheArray()T[]FSHashSet._toArrayForSelect()(package private) TOPFSArray.get_without_PEAR_conversion(int i) Sofa.getSofaArray()These getter methods are for creating method handle access The getter name must match the feature name + transformation - used in generic pretty printing routinesprivate TOP[]FSHashSet.gta()private TOP[]Int2FS.gta()<U extends TOP>
U[]FSArray.toArray(U[] a) TOP[]FSArrayList.toArray()returns TOP[] because can't make array of T Note: converts to pear trampolines.T[]FSHashSet.toArray()Methods in org.apache.uima.jcas.cas with parameters of type TOPModifier and TypeMethodDescription(package private) voidFSArray.set_without_PEAR_conversion(int i, TOP v) <U extends TOP>
U[]FSArray.toArray(U[] a) Method parameters in org.apache.uima.jcas.cas with type arguments of type TOPModifier and TypeMethodDescriptionprivate StringInt2FS.toString(Int2ObjHashMap<TOP, T> collection, int maxLen) To string.Constructor parameters in org.apache.uima.jcas.cas with type arguments of type TOPModifierConstructorDescriptionConstructs an instance of a subtype of FSArray having the component type clazz Note: the array with this component type must already be specified in the type system declaration as a feature whose range is FSArray with the specified elementType. -
Uses of TOP in org.apache.uima.jcas.impl
Fields in org.apache.uima.jcas.impl declared as TOPMethods in org.apache.uima.jcas.impl with type parameters of type TOPModifier and TypeMethodDescription<T extends TOP>
FSIterator<T> JCasImpl.getAllIndexedFS(Class<T> clazz) <T extends TOP>
FSIterator<T> JFSIndexRepositoryImpl.getAllIndexedFS(int aType) <T extends TOP>
FSIterator<T> JFSIndexRepositoryImpl.getAllIndexedFS(Type aType) Methods in org.apache.uima.jcas.impl that return TOPModifier and TypeMethodDescriptionprivate TOPfind a real item or a reserve item, matching the key Can be called under lock or not.final TOPJCasHashMap.get(int key) (package private) final TOPJCasHashMapSubMap.get(int key, int hash) Gets a value.JCasImpl.getDocumentAnnotationFs()private TOP[]JCasHashMapSubMap.newTableKeepSize(int capacity) final TOP(package private) final TOPPuts a new value into the table, replacing an existing one if there is an entry already, or adding a new entry Starts by acquiring the lock.final TOPJCasHashMap.putIfAbsent(int key, IntFunction<TOP> creator) (package private) TOPJCasHashMapSubMap.putIfAbsent(int key, int hash, IntFunction<TOP> creatorFromKey) If an entry isn't already present for this key, calls a Supplier to create a value and puts it into the table.private TOPMethods in org.apache.uima.jcas.impl that return types with arguments of type TOPModifier and TypeMethodDescriptionJFSIndexRepositoryImpl.getIndexes()JCasHashMap.iterator()JCasHashMapSubMap.iterator()Methods in org.apache.uima.jcas.impl with parameters of type TOPModifier and TypeMethodDescriptionprivate TOPfind a real item or a reserve item, matching the key Can be called under lock or not.private static booleanfinal TOP(package private) final TOPPuts a new value into the table, replacing an existing one if there is an entry already, or adding a new entry Starts by acquiring the lock.private voidOnly used to fill in newly expanded table always called with lock heldprivate TOPMethod parameters in org.apache.uima.jcas.impl with type arguments of type TOPModifier and TypeMethodDescriptionfinal TOPJCasHashMap.putIfAbsent(int key, IntFunction<TOP> creator) (package private) TOPJCasHashMapSubMap.putIfAbsent(int key, int hash, IntFunction<TOP> creatorFromKey) If an entry isn't already present for this key, calls a Supplier to create a value and puts it into the table. -
Uses of TOP in org.apache.uima.jcas.tcas
Subclasses of TOP in org.apache.uima.jcas.tcasModifier and TypeClassDescriptionclassthe JCas class model for the CAS type uima.cas.Annotation.classThe JCas class definition for the CASDocumentAnnotationtype. -
Uses of TOP in org.apache.uima.json
Methods in org.apache.uima.json that return types with arguments of type TOPMethods in org.apache.uima.json with parameters of type TOPModifier and TypeMethodDescriptionprivate booleanJsonCasSerializer.JsonDocSerializer.isDynamicOrStaticMultiRef(FeatureImpl fi, TOP fs) private booleanJsonCasSerializer.JsonDocSerializer.isDynamicOrStaticMultiRef(FeatureImpl fi, TOP fs, boolean isListAsFSs) private voidJsonCasSerializer.JsonDocSerializer.writeArray(TOP fs, FeatureImpl fi, int featureClass) protected voidJsonCasSerializer.JsonDocSerializer.writeArrays(TOP fs, int typeCode, int typeClass) Write FSArraysprivate voidJsonCasSerializer.JsonDocSerializer.writeEmbeddedFs(TOP fs) protected voidprivate voidJsonCasSerializer.JsonDocSerializer.writeFSArray(TOP array, int array_size) private voidJsonCasSerializer.JsonDocSerializer.writeFsOrLists(TOP fs, TypeImpl ti, boolean isListAsFSs) private voidJsonCasSerializer.JsonDocSerializer.writeFsOrRef(TOP fs) for arrays and lists, recursively write one FS, as actual FS, if dynamic embedding and single ref OR, just write the reference id If trying to write the null FS (due to filtering for instance), write 0private voidJsonCasSerializer.JsonDocSerializer.writeFsOrRef(TOP fs, FeatureImpl fi) protected voidJsonCasSerializer.JsonDocSerializer.writeFsRef(TOP fs) protected booleanJsonCasSerializer.JsonDocSerializer.writeFsStart(TOP fs, int typeCode) private voidJsonCasSerializer.JsonDocSerializer.writeJsonArrayValues(TOP array, int arrayType) private voidJsonCasSerializer.JsonDocSerializer.writeJsonListValues(TOP curNode) Only called if no sharing of list nodes exists (except for non-dynamic case) Only called for list nodes referred to by Feature value slots in some FS.private voidJsonCasSerializer.JsonDocSerializer.writeList(TOP fs, FeatureImpl fi, int featureClass, boolean isListAsFSs) protected voidJsonCasSerializer.JsonDocSerializer.writeListsAsIndividualFSs(TOP fs, int typeCode) Method parameters in org.apache.uima.json with type arguments of type TOPModifier and TypeMethodDescriptionprotected voidJsonCasSerializer.JsonDocSerializer.writeView(Sofa sofa, Collection<TOP> members) protected voidJsonCasSerializer.JsonDocSerializer.writeView(Sofa sofa, Collection<TOP> added, Collection<TOP> deleted, Collection<TOP> reindexed) private voidJsonCasSerializer.JsonDocSerializer.writeViewForDeltas(com.fasterxml.jackson.core.io.SerializedString kind, Collection<TOP> deltaMembers) private voidJsonCasSerializer.JsonDocSerializer.writeViewMembers(Collection<TOP> members) -
Uses of TOP in org.apache.uima.spi
Methods in org.apache.uima.spi that return types with arguments of type TOP -
Uses of TOP in org.apache.uima.tools.cvd
Fields in org.apache.uima.tools.cvd declared as TOP -
Uses of TOP in org.apache.uima.util
Fields in org.apache.uima.util with type parameters of type TOPModifier and TypeFieldDescriptionCasCopier.mFsMapkey is source FS, value is target FS Target not set for SofaFSs Target not set if lenient specified and src type isn't in targetCasCopier.mFsMapkey is source FS, value is target FS Target not set for SofaFSs Target not set if lenient specified and src type isn't in targetMethods in org.apache.uima.util that return TOPModifier and TypeMethodDescriptionprivate TOPprivate TOPCopy one FS from the src CAS to the tgt CAS View context: The caller must set the srcCasViewImpl and the tgtCasViewImplprivate TOPprivate TOPCasCopier.copyFsInner(TOP srcFs) Copies a FS from the source CAS to the destination CAS.Methods in org.apache.uima.util with parameters of type TOPModifier and TypeMethodDescriptionbooleanCasCopier.alreadyCopied(TOP aFS) Note: if lenient is in effect, this method will return false for FSs which are not copied because the target doesn't have that type.private TOPprivate TOPCopy one FS from the src CAS to the tgt CAS View context: The caller must set the srcCasViewImpl and the tgtCasViewImplprivate TOPprivate TOPCasCopier.copyFsInner(TOP srcFs) Copies a FS from the source CAS to the destination CAS. -
Uses of TOP in org.apache.uima.util.impl
Fields in org.apache.uima.util.impl declared as TOP