Fix compiler warning
Fix a small bug where RetainFilter flipped to a RejectFilter incorrectly
Replaced AtomicInteger in generateFieldKeys with an Iterator