StreamingByteData byteData = new StreamingByteData(is, deserializationBufferSizeHint);
return byteData;
}
private void readTypeStateObjects(StreamingByteData byteData,FastBlobSchema schema) throws IOException {
FastBlobDeserializationRecord rec = new FastBlobDeserializationRecord(schema, byteData);
LazyTypeDataState<?> typeDataState = stateEngine.getTypeDataState(schema.getName());
int numObjects = VarInt.readVInt(byteData);
if(numObjects != 0 && eventHandler != null) {
eventHandler.addedObjects(schema.getName(), numObjects);
}
int currentOrdinal = 0;
for(int j=0;j<numObjects;j++) {
int currentOrdinalDelta = VarInt.readVInt(byteData);
currentOrdinal += currentOrdinalDelta;
int objectSize = rec.position(byteData.currentStreamPosition());
if(typeDataState != null) {
typeDataState.add(currentOrdinal, byteData, byteData.currentStreamPosition(), objectSize);
}