FieldType fieldType = rec.getSchema().getFieldType(position);
if(fieldType != FieldType.MAP)
throw new IllegalArgumentException("Attempting to serialize a Map as " + fieldType + " in field " + fieldName + ". Carefully check your schema for type " + rec.getSchema().getName() + ".");
ByteDataBuffer fieldBuffer = rec.getFieldBuffer(position);
FastBlobTypeSerializationState<K> keySerializationState = ((FastBlobStateEngine) framework).getTypeSerializationState(keyTypeName);
FastBlobTypeSerializationState<V> valueSerializationState = ((FastBlobStateEngine) framework).getTypeSerializationState(valueTypeName);
long mapEntries[] = new long[map.size()];
int i = 0;