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 TypeClassDescriptionclassThe implementation of jcas-only features in the type system.Fields in org.apache.uima.cas.impl declared as FeatureImplModifier and TypeFieldDescription(package private) FeatureImplTypeSystemImpl.annotBaseSofaFeat(package private) FeatureImplTypeSystemImpl.endFeat(package private) final FeatureImpl[][]CasCompare.FeatLists.featsByEasefirst index is easy, easyArrays, refs, refArrays(package private) final FeatureImplCasCompare.ScsKey.featureprivate final FeatureImpl[][]CasTypeSystemMapper.fSrc2TgtFeature mapping from source to target first key is the src type code, 2nd is the src feature offset (origin 0)private final FeatureImpl[][]CasTypeSystemMapper.fTgt2SrcFeature 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) FeatureImplTypeSystemImpl.langFeatprivate FeatureImplCASImpl.prevFionly used for tracing, enables tracing 2 slots for long/doublestatic final FeatureImplFeatureImpl.singletonUsed by CAS Copier to denote missing feature(package private) FeatureImplTypeSystemImpl.sofaArray(package private) FeatureImplTypeSystemImpl.sofaId(package private) FeatureImplTypeSystemImpl.sofaMime(package private) FeatureImplTypeSystemImpl.sofaNum(package private) FeatureImplTypeSystemImpl.sofaString(package private) FeatureImplTypeSystemImpl.sofaUri(package private) FeatureImplTypeSystemImpl.startFeatprivate FeatureImpl[]TypeImpl.staticMergedFeaturesListprivate FeatureImpl[]TypeImpl.staticMergedIntFeaturesListMap from adjusted offset in int features to feature.private FeatureImpl[]TypeImpl.staticMergedNonSofaFsRefsJust the FS refs which are not sofa refsprivate FeatureImpl[]TypeImpl.staticMergedRefFeaturesListMap from adjusted offset in ref features to feature Set at commit timeprivate FeatureImplFeaturePathImpl.targetFeatureprivate FeatureImpl[]BinaryCasSerDes6.ReadModifiedFSs.tgtF2srcFa 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.boundFeaturesFeatureImpl array corresponding to feature path names.(package private) final List<FeatureImpl> TypeSystemImpl.featuresAn ArrayList, unsynchronized, indexed by feature code, of FeatureImpl objectsprivate final Map<String, FeatureImpl> TypeImpl.staticMergedFeaturesprivate final List<FeatureImpl> Methods in org.apache.uima.cas.impl that return FeatureImplModifier and TypeMethodDescriptionprotected FeatureImplFeatureStructureImplC._getFeatFromAdjOffset(int adjOffset, boolean isInInt) private FeatureImplCASImpl.getFeatFromCode_checked(int featureCode) FeaturePathImpl.getFeature(int i) private FeatureImplTypeSystemImpl.getFeature(String typeName, String featureShortName) private FeatureImplTypeSystemImpl.getFeature(Type type, String featureShortName) (package private) FeatureImplTypeImpl.getFeatureByAdjOffset(int adjOffset, boolean isInInt) TypeImpl.getFeatureByBaseName(String featureShortName) TypeSystemImpl.getFeatureByFullName(String featureName) Get an feature object for a given name.(package private) FeatureImplTypeSystemImpl.getFeatureForCode(int featureCode) (package private) FeatureImplTypeSystemImpl.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 TypeMethodDescriptionbooleanFeatureStructureImplC._getBooleanValueNc(FeatureImpl fi) byteFeatureStructureImplC._getByteValueNc(FeatureImpl feat) doubleFeatureStructureImplC._getDoubleValueNc(FeatureImpl fi) FeatureStructureImplC._getFeatureValueNc(FeatureImpl feat) floatFeatureStructureImplC._getFloatValueNc(FeatureImpl fi) intFeatureStructureImplC._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 intFeatureStructureImplC._getIntValueCommon(FeatureImpl feat) intFeatureStructureImplC._getIntValueNc(FeatureImpl feat) longFeatureStructureImplC._getLongValueNc(FeatureImpl feat) private ObjectFeatureStructureImplC._getRefValueCommon(FeatureImpl feat) shortFeatureStructureImplC._getShortValueNc(FeatureImpl feat) FeatureStructureImplC._getStringValueNc(FeatureImpl feat) final voidFeatureStructureImplC._setBooleanValueNcNj(FeatureImpl fi, boolean v) voidFeatureStructureImplC._setByteValueNcNj(FeatureImpl fi, byte v) voidFeatureStructureImplC._setDoubleValueNcNj(FeatureImpl fi, double v) voidFeatureStructureImplC._setFeatureValueNcNj(FeatureImpl fi, Object v) voidFeatureStructureImplC._setFloatValueNcNj(FeatureImpl fi, float v) voidFeatureStructureImplC._setIntLikeValue(SlotKinds.SlotKind slotKind, FeatureImpl fi, int v) Internal Use onlyvoidFeatureStructureImplC._setIntLikeValueNcNj(SlotKinds.SlotKind slotKind, FeatureImpl fi, int v) Internal Use only - no feature check, no journalingprotected voidFeatureStructureImplC._setIntValueCJ(FeatureImpl fi, int v) All 3 checksprivate voidFeatureStructureImplC._setIntValueCommon(FeatureImpl fi, int v) voidFeatureStructureImplC._setIntValueNcNj(FeatureImpl fi, int v) protected voidFeatureStructureImplC._setLongValueCJ(FeatureImpl fi, long v) All 3 checks for longvoidFeatureStructureImplC._setLongValueNcNj(FeatureImpl fi, long v) protected voidFeatureStructureImplC._setLongValueNfcCJ(FeatureImpl fi, long v) 2 checks, no feature checkprotected voidFeatureStructureImplC._setRefValueCJ(FeatureImpl fi, Object v) private voidFeatureStructureImplC._setRefValueCommon(FeatureImpl fi, Object v) protected voidFeatureStructureImplC._setRefValueCommonWj(FeatureImpl fi, Object v) protected voidFeatureStructureImplC._setRefValueNfcCJ(FeatureImpl fi, Object v) 2 checks, no feature checkvoidFeatureStructureImplC._setShortValueNcNj(FeatureImpl fi, short v) voidFeatureStructureImplC._setStringValueNcNj(FeatureImpl fi, String v) (package private) voidTypeImpl.addFeature(FeatureImpl fi) private booleanCasTypeSystemMapper.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 voidTypeImpl.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) voidTypeImpl.checkExistingFeatureCompatible(FeatureImpl existingFi, Type range) private final voidCASImpl.checkFsRan(FeatureImpl fi) Validate a feature's range is a ref to a feature structureprivate final voidCASImpl.checkTypeHasFeature(TypeImpl domainType, FeatureImpl feature) 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.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 intCasCompare.compareStringsWithNull(String s1, String s2, TypeImpl t, FeatureImpl f, int index) static 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 voidCASImpl.featModWhileInIndexReport(FeatureStructure fs, FeatureImpl fi) private 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) private intBinaryCasSerDes4.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 StringCASImpl.getTraceRepOfObj(FeatureImpl fi, Object v) private voidXmiCasDeserializer.XmiCasDeserializerHandler.handleFeatMultiValue(TOP fs, FeatureImpl fi, List<String> featVals) private voidXmiCasDeserializer.XmiCasDeserializerHandler.handleFeatSingleValue(TOP fs, FeatureImpl fi, String featVal) private intBinaryCasSerDes.heapFeat(int nextFsAddr, FeatureImpl feat) private 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".booleanCasSerializerSupport.CasDocSerializer.isStaticMultiRef(FeatureImpl fi) private voidCASImpl.logFSUpdate(TOP fs, FeatureImpl fi) private voidCASImpl.logFSUpdate(TOP fs, FeatureImpl fi, int arrayIndexStart, int nbrOfConsecutive) final voidCASImpl.maybeLogArrayUpdate(FeatureStructureImplC fs, FeatureImpl feat, int i) final voidCASImpl.maybeLogUpdate(FeatureStructureImplC fs, FeatureImpl feat) private voidCasCompare.mismatchFs(TOP fs1, TOP fs2, String msg, TypeImpl callerTi, FeatureImpl callerFi) private voidCasCompare.mismatchFs(TOP fs1, TOP fs2, TypeImpl callerTi, FeatureImpl callerFi) private voidBinaryCasSerDes4.Deserializer.readByKind(FeatureImpl feat, TypeImpl type) If the fs is null, accumulate fixup operations, otherwise directly set thisprivate voidBinaryCasSerDes6.readByKind(TOP fs, FeatureImpl tgtFeat, FeatureImpl srcFeat, boolean storeIt, TypeImpl tgtType) private intBinaryCasSerDes4.Deserializer.readDiffWithPrevTypeSlot(SlotKinds.SlotKind kind, FeatureImpl feat) Difference with previously deserialized value of corresponding slot of previous FS for this type.private voidCasSerializerSupport.CasDocSerializer.reportMultiRefWarning(FeatureImpl fi) 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) private voidBinaryCasSerDes.setFeatOrDefer(int heapIndex, FeatureImpl feat, List<Runnable> fixups4forwardFsRefs, Consumer<TOP> setter, Int2ObjHashMap<TOP, TOP> addr2fs) (package private) voidTypeSystemImpl.setFeatureAdjustedOffset(FeatureImpl fi, List<FeatureImpl> tempIntFis, List<FeatureImpl> tempRefFis, List<FeatureImpl> tempNsr) static voidCASImpl.setFeatureValueFromString(FeatureStructureImplC fs, FeatureImpl feat, String s) Supports setting slots to "0" for null valuesstatic voidCASImpl.setFeatureValueFromStringNoDocAnnotUpdate(FeatureStructureImplC fs, FeatureImpl feat, String s) Internal use, for cases where deserializing - special case setting sofString to skip updating the document annotationstatic 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 deserializingvoidCASImpl.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) voidTypeSystemImpl.setOffset2Feat(List<FeatureImpl> tempIntFis, List<FeatureImpl> tempRefFis, List<FeatureImpl> tempNsr, FeatureImpl fi, int next) (package private) voidTypeImpl.setStaticMergedIntFeaturesList(FeatureImpl[] v) (package private) voidTypeImpl.setStaticMergedNonSofaFsRefs(FeatureImpl[] v) (package private) voidTypeImpl.setStaticMergedRefFeaturesList(FeatureImpl[] v) (package private) final voidCASImpl.setWithCheckAndJournal(TOP fs, FeatureImpl fi, Runnable setter) final voidCASImpl.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) voidCASImpl.traceFSfeat(FeatureStructureImplC fs, FeatureImpl fi, Object v) private booleanBinaryCasSerDes.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 voidTypeSystemImpl.addJCasOffsets(FSClassRegistry.JCasClassInfo jcci, List<FeatureImpl> tempIntFis, List<FeatureImpl> tempRefFis, List<FeatureImpl> tempNsrFis) private voidTypeSystemImpl.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) voidTypeImpl.initAdjOffset2FeatureMaps(List<FeatureImpl> tempIntFis, List<FeatureImpl> tempRefFis, List<FeatureImpl> tempNsr) private voidTypeSystemImpl.maybeAddJCasOffsets(TypeImpl ti, List<FeatureImpl> tempIntFis, List<FeatureImpl> tempRefFis, List<FeatureImpl> tempNsrFis) private voidTypeImpl.removeEqualFeatureNameMatch(List<FeatureImpl> fiList, String aName) (package private) voidTypeSystemImpl.setFeatureAdjustedOffset(FeatureImpl fi, List<FeatureImpl> tempIntFis, List<FeatureImpl> tempRefFis, List<FeatureImpl> tempNsr) (package private) voidTypeSystemImpl.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.SerializedStringJsonCasSerializer.JsonDocSerializer.getShortFeatureName(FeatureImpl feat) private 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) private voidJsonCasSerializer.JsonDocSerializer.writeFsOrRef(TOP fs, FeatureImpl fi) private voidJsonCasSerializer.JsonDocSerializer.writeList(TOP fs, FeatureImpl fi, int featureClass, boolean isListAsFSs) private voidJsonCasSerializer.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 FeatureImplCasCopier.getTargetFeature(FeatureImpl srcFi) private FeatureImplCasCopier.getTargetFeature2(FeatureImpl srcFi) Methods in org.apache.uima.util with parameters of type FeatureImplModifier and TypeMethodDescriptionprivate FeatureImplCasCopier.getTargetFeature(FeatureImpl srcFi) private FeatureImplCasCopier.getTargetFeature2(FeatureImpl srcFi) -
Uses of FeatureImpl in org.apache.uima.util.impl
Fields in org.apache.uima.util.impl declared as FeatureImpl