# Package org.apache.lucene.codecs.idversion

A primary-key postings format that associates a version (long) with each term and can provide fail-fast lookups by ID and version.

See: Description

- Class Summary
  Class | Description
  --- | ---
  IDVersionPostingsFormat | A PostingsFormat optimized for primary-key (ID) fields that also record a version (long) for each ID, delivered as a payload created by `IDVersionPostingsFormat.longToBytes(long, org.apache.lucene.util.BytesRef)` during indexing.
  IDVersionSegmentTermsEnum | Iterates through terms in this field; this class is public so users can cast it to call `IDVersionSegmentTermsEnum.seekExact(BytesRef, long)` for optimistic-concurrency, and also `IDVersionSegmentTermsEnum.getVersion()` to get the version of the currently seek'd term.
  VersionBlockTreeTermsReader | See `VersionBlockTreeTermsWriter`.
  VersionBlockTreeTermsWriter | This is just like `BlockTreeTermsWriter`, except it also stores a version per term, and adds a method to its TermsEnum implementation to seekExact only if the version is >= the specified version.

## Package org.apache.lucene.codecs.idversion Description

A primary-key postings format that associates a version (long) with each term and can provide fail-fast lookups by ID and version.

Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.