org.apache.lucene.index
public class RandomCodec extends Lucene46Codec
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.
| Modifier and Type | Field and Description |
|---|---|
Set<String> |
dvFormatNames
unique set of docvalues format names this codec knows about
|
Set<String> |
formatNames
unique set of format names this codec knows about
|
| Constructor and Description |
|---|
RandomCodec(Random random) |
RandomCodec(Random random,
Set<String> avoidCodecs) |
| Modifier and Type | Method and Description |
|---|---|
DocValuesFormat |
getDocValuesFormatForField(String name) |
PostingsFormat |
getPostingsFormatForField(String name) |
String |
toString() |
docValuesFormat, fieldInfosFormat, liveDocsFormat, normsFormat, postingsFormat, segmentInfoFormat, storedFieldsFormat, termVectorsFormatavailableCodecs, forName, getDefault, getName, reloadCodecs, setDefaultpublic RandomCodec(Random random)
public PostingsFormat getPostingsFormatForField(String name)
getPostingsFormatForField in class Lucene46Codecpublic DocValuesFormat getDocValuesFormatForField(String name)
getDocValuesFormatForField in class Lucene46CodecCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.