Uses of Class
org.apache.uima.cas.impl.FeatureImpl
Packages that use FeatureImpl
Package
Description
Implementation and Low-Level API for the CAS Interfaces.
Utility classes and interfaces used by UIMA components.
-
Uses of FeatureImpl in org.apache.uima.cas.impl
Subclasses of FeatureImpl in org.apache.uima.cas.implModifier and TypeClassDescriptionclass
The implementation of jcas-only features in the type system.Fields in org.apache.uima.cas.impl declared as FeatureImplModifier and TypeFieldDescription(package private) FeatureImpl
TypeSystemImpl.annotBaseSofaFeat
(package private) FeatureImpl
TypeSystemImpl.endFeat
(package private) final FeatureImpl[][]
CasCompare.FeatLists.featsByEase
first index is easy, easyArrays, refs, refArrays(package private) final FeatureImpl
CasCompare.ScsKey.feature
private final FeatureImpl[][]
CasTypeSystemMapper.fSrc2Tgt
Feature mapping from source to target first key is the src type code, 2nd is the src feature offset (origin 0)private final FeatureImpl[][]
CasTypeSystemMapper.fTgt2Src
Feature mapping from target to source first key is the tgt type code, 2nd is the tgt feature offset Only used for type codes that are not arrays.(package private) FeatureImpl
TypeSystemImpl.langFeat
private FeatureImpl
CASImpl.prevFi
only used for tracing, enables tracing 2 slots for long/doublestatic final FeatureImpl
FeatureImpl.singleton
Used by CAS Copier to denote missing feature(package private) FeatureImpl
TypeSystemImpl.sofaArray
(package private) FeatureImpl
TypeSystemImpl.sofaId
(package private) FeatureImpl
TypeSystemImpl.sofaMime
(package private) FeatureImpl
TypeSystemImpl.sofaNum
(package private) FeatureImpl
TypeSystemImpl.sofaString
(package private) FeatureImpl
TypeSystemImpl.sofaUri
(package private) FeatureImpl
TypeSystemImpl.startFeat
private FeatureImpl[]
TypeImpl.staticMergedFeaturesList
private FeatureImpl[]
TypeImpl.staticMergedIntFeaturesList
Map from adjusted offset in int features to feature.private FeatureImpl[]
TypeImpl.staticMergedNonSofaFsRefs
Just the FS refs which are not sofa refsprivate FeatureImpl[]
TypeImpl.staticMergedRefFeaturesList
Map from adjusted offset in ref features to feature Set at commit timeprivate FeatureImpl
FeaturePathImpl.targetFeature
private FeatureImpl[]
BinaryCasSerDes6.ReadModifiedFSs.tgtF2srcF
a map from target offsets to source offsetsFields in org.apache.uima.cas.impl with type parameters of type FeatureImplModifier and TypeFieldDescriptionprivate final ArrayList
<FeatureImpl> FeaturePathImpl.boundFeatures
FeatureImpl array corresponding to feature path names.(package private) final List
<FeatureImpl> TypeSystemImpl.features
An ArrayList, unsynchronized, indexed by feature code, of FeatureImpl objectsprivate final Map
<String, FeatureImpl> TypeImpl.staticMergedFeatures
private final List
<FeatureImpl> Methods in org.apache.uima.cas.impl that return FeatureImplModifier and TypeMethodDescriptionprotected FeatureImpl
FeatureStructureImplC._getFeatFromAdjOffset
(int adjOffset, boolean isInInt) private FeatureImpl
CASImpl.getFeatFromCode_checked
(int featureCode) FeaturePathImpl.getFeature
(int i) private FeatureImpl
TypeSystemImpl.getFeature
(String typeName, String featureShortName) private FeatureImpl
TypeSystemImpl.getFeature
(Type type, String featureShortName) (package private) FeatureImpl
TypeImpl.getFeatureByAdjOffset
(int adjOffset, boolean isInInt) TypeImpl.getFeatureByBaseName
(String featureShortName) TypeSystemImpl.getFeatureByFullName
(String featureName) Get an feature object for a given name.(package private) FeatureImpl
TypeSystemImpl.getFeatureForCode
(int featureCode) (package private) FeatureImpl
TypeSystemImpl.getFeatureForCode_checked
(int featureCode) TypeImpl.getFeatureImpls()
This impl depends on features never being removed from types, only added Minimal Java object generation, maximal reuseFSIndexComparatorImpl.getKeyFeature
(int key) CasTypeSystemMapper.getSrcFeature
(TypeImpl tgtType, FeatureImpl tgtFeat) CasTypeSystemMapper.getSrcFeatures
(TypeImpl tgtType) Given a tgt type, return an array of source features in the order they would appear in the target.(package private) FeatureImpl[]
TypeImpl.getStaticMergedNonSofaFsRefs()
CasTypeSystemMapper.getTgtFeature
(TypeImpl srcType, FeatureImpl srcFeat) Get target feature, given src type and featureCasTypeSystemMapper.getToFeature
(FeatureImpl[][] mapByTypeCode, TypeImpl fromType, FeatureImpl fromFeat) TypeSystemImpl.refreshFeature
(Feature f) Methods in org.apache.uima.cas.impl that return types with arguments of type FeatureImplModifier and TypeMethodDescriptionTypeImpl.getFeaturesAsStream()
TypeImpl.getMergedStaticFeaturesIntroducedByThisType()
Methods in org.apache.uima.cas.impl with parameters of type FeatureImplModifier and TypeMethodDescriptionboolean
FeatureStructureImplC._getBooleanValueNc
(FeatureImpl fi) byte
FeatureStructureImplC._getByteValueNc
(FeatureImpl feat) double
FeatureStructureImplC._getDoubleValueNc
(FeatureImpl fi) FeatureStructureImplC._getFeatureValueNc
(FeatureImpl feat) float
FeatureStructureImplC._getFloatValueNc
(FeatureImpl fi) int
FeatureStructureImplC._getIntLikeValue
(SlotKinds.SlotKind slotKind, FeatureImpl f) for compressed form 4 - for getting the prev value of int-like slots Uses unchecked forms for feature accessprivate int
FeatureStructureImplC._getIntValueCommon
(FeatureImpl feat) int
FeatureStructureImplC._getIntValueNc
(FeatureImpl feat) long
FeatureStructureImplC._getLongValueNc
(FeatureImpl feat) private Object
FeatureStructureImplC._getRefValueCommon
(FeatureImpl feat) short
FeatureStructureImplC._getShortValueNc
(FeatureImpl feat) FeatureStructureImplC._getStringValueNc
(FeatureImpl feat) final void
FeatureStructureImplC._setBooleanValueNcNj
(FeatureImpl fi, boolean v) void
FeatureStructureImplC._setByteValueNcNj
(FeatureImpl fi, byte v) void
FeatureStructureImplC._setDoubleValueNcNj
(FeatureImpl fi, double v) void
FeatureStructureImplC._setFeatureValueNcNj
(FeatureImpl fi, Object v) void
FeatureStructureImplC._setFloatValueNcNj
(FeatureImpl fi, float v) void
FeatureStructureImplC._setIntLikeValue
(SlotKinds.SlotKind slotKind, FeatureImpl fi, int v) Internal Use onlyvoid
FeatureStructureImplC._setIntLikeValueNcNj
(SlotKinds.SlotKind slotKind, FeatureImpl fi, int v) Internal Use only - no feature check, no journalingprotected void
FeatureStructureImplC._setIntValueCJ
(FeatureImpl fi, int v) All 3 checksprivate void
FeatureStructureImplC._setIntValueCommon
(FeatureImpl fi, int v) void
FeatureStructureImplC._setIntValueNcNj
(FeatureImpl fi, int v) protected void
FeatureStructureImplC._setLongValueCJ
(FeatureImpl fi, long v) All 3 checks for longvoid
FeatureStructureImplC._setLongValueNcNj
(FeatureImpl fi, long v) protected void
FeatureStructureImplC._setLongValueNfcCJ
(FeatureImpl fi, long v) 2 checks, no feature checkprotected void
FeatureStructureImplC._setRefValueCJ
(FeatureImpl fi, Object v) private void
FeatureStructureImplC._setRefValueCommon
(FeatureImpl fi, Object v) protected void
FeatureStructureImplC._setRefValueCommonWj
(FeatureImpl fi, Object v) protected void
FeatureStructureImplC._setRefValueNfcCJ
(FeatureImpl fi, Object v) 2 checks, no feature checkvoid
FeatureStructureImplC._setShortValueNcNj
(FeatureImpl fi, short v) void
FeatureStructureImplC._setStringValueNcNj
(FeatureImpl fi, String v) (package private) void
TypeImpl.addFeature
(FeatureImpl fi) private boolean
CasTypeSystemMapper.addFeatures
(FeatureImpl[][] map, TypeSystemImpl tsFrom, TypeSystemImpl tsTo) Create the map from tsFrom to tsTo for all the features, by type -- map created using type and feature name equality -- note: the features may have different definitions; map is by name only --- e.g., one may have String range, the other float range.FeatureStructureImplC.addStringOrPrimitive
(StringBuilder sb, FeatureImpl fi) private void
TypeImpl.checkAndAdjustFeatureInSubtypes
(TypeImpl ti, FeatureImpl fi) It is possible that users may create type/subtype structure, and then add features (in any order) to that, including adding a subtype feature "foo", and subsequently adding a type feature "foo".(package private) void
TypeImpl.checkExistingFeatureCompatible
(FeatureImpl existingFi, Type range) private final void
CASImpl.checkFsRan
(FeatureImpl fi) Validate a feature's range is a ref to a feature structureprivate final void
CASImpl.checkTypeHasFeature
(TypeImpl domainType, FeatureImpl feature) private int
CasCompare.compareAllArrayElements
(TOP fs1, TOP fs2, int len, IntUnaryOperator c, TypeImpl callerTi, FeatureImpl callerFi) private int
CasCompare.compareFeature
(TOP fs1, TOP fs2, TypeImpl ti1, FeatureImpl fi1) private int
CasCompare.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 int
CasCompare.compareFssArray
(TOP fs1, TOP fs2, TypeImpl callerTi, FeatureImpl callerFi) private int
CasCompare.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 int
CasCompare.compareSlot
(TOP fs1, TOP fs2, FeatureImpl fi1, FeatureImpl fi2, TypeImpl ti1) private int
CasCompare.compareStringsWithNull
(String s1, String s2, TypeImpl t, FeatureImpl f, int index) static boolean
CASImpl.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 void
XmiCasDeserializer.XmiCasDeserializerHandler.deserializeFsRef
(String featVal, FeatureImpl fi, TOP fs) private void
CASImpl.featModWhileInIndexReport
(FeatureStructure fs, FeatureImpl fi) private void
XCASDeserializer.XCASDeserializerHandler.finalizeRefValue
(int extId, TOP fs, FeatureImpl fi) Common code run at finalize time, to set ref values and handle out-of-typesystem dataprivate void
XmiCasDeserializer.XmiCasDeserializerHandler.finalizeRefValue
(int xmiId, TOP fs, FeatureImpl fi) private int
BinaryCasSerDes4.Deserializer.getPrevIntValue
(SlotKinds.SlotKind kind, FeatureImpl feat) Common code for feature offset and arrayCasTypeSystemMapper.getSrcFeature
(TypeImpl tgtType, FeatureImpl tgtFeat) CasTypeSystemMapper.getTgtFeature
(TypeImpl srcType, FeatureImpl srcFeat) Get target feature, given src type and featureCasTypeSystemMapper.getToFeature
(FeatureImpl[][] mapByTypeCode, TypeImpl fromType, FeatureImpl fromFeat) private String
CASImpl.getTraceRepOfObj
(FeatureImpl fi, Object v) private void
XmiCasDeserializer.XmiCasDeserializerHandler.handleFeatMultiValue
(TOP fs, FeatureImpl fi, List<String> featVals) private void
XmiCasDeserializer.XmiCasDeserializerHandler.handleFeatSingleValue
(TOP fs, FeatureImpl fi, String featVal) private int
BinaryCasSerDes.heapFeat
(int nextFsAddr, FeatureImpl feat) private boolean
CasSerializerSupport.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".boolean
CasSerializerSupport.CasDocSerializer.isStaticMultiRef
(FeatureImpl fi) private void
CASImpl.logFSUpdate
(TOP fs, FeatureImpl fi) private void
CASImpl.logFSUpdate
(TOP fs, FeatureImpl fi, int arrayIndexStart, int nbrOfConsecutive) final void
CASImpl.maybeLogArrayUpdate
(FeatureStructureImplC fs, FeatureImpl feat, int i) final void
CASImpl.maybeLogUpdate
(FeatureStructureImplC fs, FeatureImpl feat) private void
CasCompare.mismatchFs
(TOP fs1, TOP fs2, String msg, TypeImpl callerTi, FeatureImpl callerFi) private void
CasCompare.mismatchFs
(TOP fs1, TOP fs2, TypeImpl callerTi, FeatureImpl callerFi) private void
BinaryCasSerDes4.Deserializer.readByKind
(FeatureImpl feat, TypeImpl type) If the fs is null, accumulate fixup operations, otherwise directly set thisprivate void
BinaryCasSerDes6.readByKind
(TOP fs, FeatureImpl tgtFeat, FeatureImpl srcFeat, boolean storeIt, TypeImpl tgtType) private int
BinaryCasSerDes4.Deserializer.readDiffWithPrevTypeSlot
(SlotKinds.SlotKind kind, FeatureImpl feat) Difference with previously deserialized value of corresponding slot of previous FS for this type.private void
CasSerializerSupport.CasDocSerializer.reportMultiRefWarning
(FeatureImpl fi) private void
BinaryCasSerDes4.Serializer.serializeByKind
(TOP fs, FeatureImpl feat) private void
BinaryCasSerDes6.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 void
BinaryCasSerDes6.serializeDiffWithPrevTypeSlot
(SlotKinds.SlotKind kind, TOP fs, FeatureImpl feat, int newValue) private void
BinaryCasSerDes.setFeatOrDefer
(int heapIndex, FeatureImpl feat, List<Runnable> fixups4forwardFsRefs, Consumer<TOP> setter, Int2ObjHashMap<TOP, TOP> addr2fs) (package private) void
TypeSystemImpl.setFeatureAdjustedOffset
(FeatureImpl fi, List<FeatureImpl> tempIntFis, List<FeatureImpl> tempRefFis, List<FeatureImpl> tempNsr) static void
CASImpl.setFeatureValueFromString
(FeatureStructureImplC fs, FeatureImpl feat, String s) Supports setting slots to "0" for null valuesstatic void
CASImpl.setFeatureValueFromStringNoDocAnnotUpdate
(FeatureStructureImplC fs, FeatureImpl feat, String s) Internal use, for cases where deserializing - special case setting sofString to skip updating the document annotationstatic void
CASImpl.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 deserializingvoid
CASImpl.setLongValue
(FeatureStructureImplC fsIn, FeatureImpl feat, long v) version for longs, uses two slots Only called from FeatureStructureImplC after determining there is no local field to use Is here because of 3 calls to things in this class(package private) void
TypeSystemImpl.setOffset2Feat
(List<FeatureImpl> tempIntFis, List<FeatureImpl> tempRefFis, List<FeatureImpl> tempNsr, FeatureImpl fi, int next) (package private) void
TypeImpl.setStaticMergedIntFeaturesList
(FeatureImpl[] v) (package private) void
TypeImpl.setStaticMergedNonSofaFsRefs
(FeatureImpl[] v) (package private) void
TypeImpl.setStaticMergedRefFeaturesList
(FeatureImpl[] v) (package private) final void
CASImpl.setWithCheckAndJournal
(TOP fs, FeatureImpl fi, Runnable setter) final void
CASImpl.setWithJournal
(FeatureStructureImplC fs, FeatureImpl fi, Runnable setter) This method called by setters in JCas gen'd classes when the setter must check for journaling(package private) void
CASImpl.traceFSfeat
(FeatureStructureImplC fs, FeatureImpl fi, Object v) private boolean
BinaryCasSerDes.updateStringFeature
(TOP fs, FeatureImpl feat, String s, List<Runnable> fixups4forwardFsRefs) Method parameters in org.apache.uima.cas.impl with type arguments of type FeatureImplModifier and TypeMethodDescriptionprivate void
TypeSystemImpl.addJCasOffsets
(FSClassRegistry.JCasClassInfo jcci, List<FeatureImpl> tempIntFis, List<FeatureImpl> tempRefFis, List<FeatureImpl> tempNsrFis) private void
TypeSystemImpl.addJCasOffsetsWithSupers
(Class<?> clazz, List<FeatureImpl> tempIntFis, List<FeatureImpl> tempRefFis, List<FeatureImpl> tempNsrFis) Insures that any super class jcas-defined features, not already defined (due to having a corresponding type in this type system) get their features done first Walking up the super chain: - could encounter a class which has no jcci (it's not a jcas class) but has a super class which is one) - so don't stop the up walk.(package private) void
TypeImpl.initAdjOffset2FeatureMaps
(List<FeatureImpl> tempIntFis, List<FeatureImpl> tempRefFis, List<FeatureImpl> tempNsr) private void
TypeSystemImpl.maybeAddJCasOffsets
(TypeImpl ti, List<FeatureImpl> tempIntFis, List<FeatureImpl> tempRefFis, List<FeatureImpl> tempNsrFis) private void
TypeImpl.removeEqualFeatureNameMatch
(List<FeatureImpl> fiList, String aName) (package private) void
TypeSystemImpl.setFeatureAdjustedOffset
(FeatureImpl fi, List<FeatureImpl> tempIntFis, List<FeatureImpl> tempRefFis, List<FeatureImpl> tempNsr) (package private) void
TypeSystemImpl.setOffset2Feat
(List<FeatureImpl> tempIntFis, List<FeatureImpl> tempRefFis, List<FeatureImpl> tempNsr, FeatureImpl fi, int next) Constructors in org.apache.uima.cas.impl with parameters of type FeatureImplModifierConstructorDescription(package private)
ScsKey
(TypeImpl type, FeatureImpl feature, int index) Constructor parameters in org.apache.uima.cas.impl with type arguments of type FeatureImplModifierConstructorDescription(package private)
FeatLists
(List<FeatureImpl> easy, List<FeatureImpl> easyArrays, List<FeatureImpl> refs, List<FeatureImpl> refArrays) -
Uses of FeatureImpl in org.apache.uima.json
Methods in org.apache.uima.json with parameters of type FeatureImplModifier and TypeMethodDescriptionprivate com.fasterxml.jackson.core.io.SerializedString
JsonCasSerializer.JsonDocSerializer.getShortFeatureName
(FeatureImpl feat) private boolean
JsonCasSerializer.JsonDocSerializer.isDynamicOrStaticMultiRef
(FeatureImpl fi, TOP fs) private boolean
JsonCasSerializer.JsonDocSerializer.isDynamicOrStaticMultiRef
(FeatureImpl fi, TOP fs, boolean isListAsFSs) private void
JsonCasSerializer.JsonDocSerializer.writeArray
(TOP fs, FeatureImpl fi, int featureClass) private void
JsonCasSerializer.JsonDocSerializer.writeFsOrRef
(TOP fs, FeatureImpl fi) private void
JsonCasSerializer.JsonDocSerializer.writeList
(TOP fs, FeatureImpl fi, int featureClass, boolean isListAsFSs) private void
JsonCasSerializer.JsonDocSerializer.writeNumeric
(FeatureImpl fi, long v) -
Uses of FeatureImpl in org.apache.uima.util
Fields in org.apache.uima.util declared as FeatureImplFields in org.apache.uima.util with type parameters of type FeatureImplMethods in org.apache.uima.util that return FeatureImplModifier and TypeMethodDescriptionprivate FeatureImpl
CasCopier.getTargetFeature
(FeatureImpl srcFi) private FeatureImpl
CasCopier.getTargetFeature2
(FeatureImpl srcFi) Methods in org.apache.uima.util with parameters of type FeatureImplModifier and TypeMethodDescriptionprivate FeatureImpl
CasCopier.getTargetFeature
(FeatureImpl srcFi) private FeatureImpl
CasCopier.getTargetFeature2
(FeatureImpl srcFi) -
Uses of FeatureImpl in org.apache.uima.util.impl
Fields in org.apache.uima.util.impl declared as FeatureImpl