Class RandomCodec

All Implemented Interfaces:
NamedSPILoader.NamedSPI

public class RandomCodec extends AssertingCodec
Codec that assigns per-field random postings formats.

The same field/format assignment will happen regardless of order, a hash is computed up front that determines the mapping. This means fields can be put into things like HashSets and added to documents in different orders and the test will still be deterministic and reproducable.