Package org.apache.uima.cas.impl
Class BinaryCasSerDes6.SerializeModifiedFSs
java.lang.Object
org.apache.uima.cas.impl.BinaryCasSerDes6.SerializeModifiedFSs
- Enclosing class:
BinaryCasSerDes6
Modified Values
Output:
For each FS that has 1 or more modified values,
write the heap addr converted to a seq # of the FS
For all modified values within the FS:
if it is an aux array element, write the index in the aux array and the new value
otherwise, write the slot offset and the new value
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CASImpl.FsChange[]
private int
private int
private long
private short
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
For Delta Serialization: Add any strings below the line Assume: no TS mapping (because it's delta serialization) Skips a modified item if in FS that isn't reachableprivate void
private void
writeModsForOneFs
(CASImpl.FsChange fsChange) Write the modifications for one feature structure, based on the data in the fsChange - this is either an array or non-array (meaning changed Features) - array changes are written out in index order.
-
Field Details
-
modifiedFSs
-
vPrevModInt
private int vPrevModInt -
vPrevModHeapRef
private int vPrevModHeapRef -
vPrevModShort
private short vPrevModShort -
vPrevModLong
private long vPrevModLong
-
-
Constructor Details
-
SerializeModifiedFSs
private SerializeModifiedFSs()
-
-
Method Details
-
addModifiedStrings
private void addModifiedStrings()For Delta Serialization: Add any strings below the line Assume: no TS mapping (because it's delta serialization) Skips a modified item if in FS that isn't reachable -
serializeModifiedFSs
- Throws:
IOException
-
writeModsForOneFs
Write the modifications for one feature structure, based on the data in the fsChange - this is either an array or non-array (meaning changed Features) - array changes are written out in index order. - feature changes are written out in offset order. - sorting and elimination of duplicates happens when extracting info from fsChange Not called if skipping writing because obj not reachable NOTE: the serialized values for the index are 0-based, vs. V2, which are base on the original offset in various "heaps". - Because of this, -- v2 deserialization can't read v3 serializations -- v3 deserialization can read v2 serializatoins, though.- Parameters:
fsChange
-- Throws:
IOException
-