Package org.apache.uima.cas.impl
Class BinaryCasSerDes4.Deserializer
java.lang.Object
org.apache.uima.cas.impl.BinaryCasSerDes4.Deserializer
- Enclosing class:
- BinaryCasSerDes4
Class instantiated once per deserialization
Multiple deserializations in parallel supported, with
multiple instances of this
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
Modified Values Modified heap values need fsStartIndexes conversion -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DataInputStream
private final DataInputStream
private ByteHeap
private final CASImpl
private final DataInputStream
private final DataInputStream[]
private final DataInput
private final DataInputStream
private final DataInputStream
private int
private IntVector
private final DataInputStream
private final DataInputStream
private final DataInputStream
private final BinaryCasSerDes4.ComprItemRefs
private int[]
private int
private final DataInputStream
private int
private Inflater[]
private final DataInputStream
private int
private final boolean
private final DataInputStream
private final DataInputStream
private LongHeap
private int
Cache sharable common values in aux heaps Values must be in aux heap, but not part of arrays there so that rules out boolean, byte, and shortsprivate boolean
private String[]
private final DataInputStream
private ShortHeap
private final DataInputStream
private StringHeap
private int
private final DataInputStream
private final DataInputStream
private final DataInputStream
private final DataInputStream
private BinaryCasSerDes4.TypeInfo
-
Constructor Summary
ConstructorsConstructorDescriptionDeserializer
(CASImpl cas, DataInput deserIn, boolean isDelta) Called after header was read and determined that this was a compressed binary -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private long
decodeDouble
(long mants, int exponent) private int
decodeIntSign
(int v) private void
private DataInput
private int
readArrayLength
(int iHeap) private void
readByKind
(int iHeap, int offset) private int
private int
readDiff
(BinaryCasSerDes4.SlotKind kind, int prev) private void
readDiffWithPrevTypeSlot
(BinaryCasSerDes4.SlotKind kind, int iHeap, int offset) private long
private int
private void
readFsxPart
(IntVector fsIndexes) private void
readHeapStoredArray
(int iHeap) private void
private int
readIntoByteArray
(int length) private int
readIntoLongArray
(BinaryCasSerDes4.SlotKind kind, int length) private int
readIntoShortArray
(int length) private long
readLong
(BinaryCasSerDes4.SlotKind kind, long prev) private void
readNonHeapStoredArray
(int iHeap) private int
private long
private long
readVlong
(DataInputStream dis) private int
private void
setupReadStream
(int slotIndex, int bytesCompr, int bytesOrig)
-
Field Details
-
cas
-
deserIn
-
dataInputs
-
inflaters
-
heap
private int[] heap -
heapStart
private int heapStart -
heapEnd
private int heapEnd -
fixupsNeeded
-
stringHeapObj
-
longHeapObj
-
shortHeapObj
-
byteHeapObj
-
stringTableOffset
private int stringTableOffset -
longZeroIndex
private int longZeroIndexCache sharable common values in aux heaps Values must be in aux heap, but not part of arrays there so that rules out boolean, byte, and shorts -
double1Index
private int double1Index -
isDelta
private final boolean isDelta -
fsStartIndexes
-
readCommonString
-
typeInfo
-
iPrevHeap
private int iPrevHeap -
only1CommonString
private boolean only1CommonString -
arrayLength_dis
-
heapRef_dis
-
int_dis
-
byte_dis
-
short_dis
-
typeCode_dis
-
strOffset_dis
-
strLength_dis
-
long_High_dis
-
long_Low_dis
-
float_Mantissa_Sign_dis
-
float_Exponent_dis
-
double_Mantissa_Sign_dis
-
double_Exponent_dis
-
fsIndexes_dis
-
strChars_dis
-
control_dis
-
strSeg_dis
-
-
Constructor Details
-
Deserializer
Deserializer(CASImpl cas, DataInput deserIn, boolean isDelta) throws IOException Called after header was read and determined that this was a compressed binary- Parameters:
cas
- CASdeserIn
- input data- Throws:
IOException
- passthru
-
-
Method Details
-
deserialize
- Throws:
IOException
-
readNonHeapStoredArray
- Throws:
IOException
-
readArrayLength
- Throws:
IOException
-
readHeapStoredArray
- Throws:
IOException
-
readByKind
- Throws:
IOException
-
readIndexedFeatureStructures
- Throws:
IOException
-
readFsxPart
- Throws:
IOException
-
setupReadStream
- Throws:
IOException
-
closeDataInputs
private void closeDataInputs() -
getInputStream
-
readVnumber
- Throws:
IOException
-
readVlong
- Throws:
IOException
-
readIntoByteArray
- Throws:
IOException
-
readIntoShortArray
- Throws:
IOException
-
readIntoLongArray
- Throws:
IOException
-
readDiffWithPrevTypeSlot
private void readDiffWithPrevTypeSlot(BinaryCasSerDes4.SlotKind kind, int iHeap, int offset) throws IOException - Throws:
IOException
-
readDiff
- Throws:
IOException
-
readDiff
- Throws:
IOException
-
readLong
- Throws:
IOException
-
readFloat
- Throws:
IOException
-
decodeIntSign
private int decodeIntSign(int v) -
readDouble
- Throws:
IOException
-
decodeDouble
private long decodeDouble(long mants, int exponent) -
readVlong
- Throws:
IOException
-
readString
- Throws:
IOException
-