'Returns if any entity has changed'

def has_any_entity_changed(self, stream_pos):

    assert (type(stream_pos) is int)
    if (stream_pos >= self._earliest_known_stream_pos):
        self.metrics.inc_hits()
        keys = self._cache.keys()
        i = keys.bisect_right(stream_pos)
        return (i < len(keys))
    else:
        self.metrics.inc_misses()
        return True
