Package org.apache.uima.cas.impl
Class BinaryCasSerDes6.SerializeModifiedFSs
- java.lang.Object
-
- org.apache.uima.cas.impl.BinaryCasSerDes6.SerializeModifiedFSs
-
- Enclosing class:
- BinaryCasSerDes6
private class BinaryCasSerDes6.SerializeModifiedFSs extends java.lang.Object
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
Fields Modifier and Type Field Description (package private) CASImpl.FsChange[]
modifiedFSs
private int
vPrevModHeapRef
private int
vPrevModInt
private long
vPrevModLong
private short
vPrevModShort
-
Constructor Summary
Constructors Modifier Constructor Description private
SerializeModifiedFSs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 reachableprivate void
serializeModifiedFSs()
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 Detail
-
modifiedFSs
final CASImpl.FsChange[] modifiedFSs
-
vPrevModInt
private int vPrevModInt
-
vPrevModHeapRef
private int vPrevModHeapRef
-
vPrevModShort
private short vPrevModShort
-
vPrevModLong
private long vPrevModLong
-
-
Method Detail
-
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
private void serializeModifiedFSs() throws java.io.IOException
- Throws:
java.io.IOException
-
writeModsForOneFs
private void writeModsForOneFs(CASImpl.FsChange fsChange) throws java.io.IOException
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:
java.io.IOException
-
-