Class BlockReader

All Implemented Interfaces:
Accountable, BytesRefIterator
Direct Known Subclasses:
IntersectBlockReader, STBlockReader

public class BlockReader extends BaseTermsEnum implements Accountable
Seeks the block corresponding to a given term, read the block bytes, and scans the block terms.

Reads fully the block in blockReadBuffer. Then scans the block terms in memory. The details region is lazily decoded with termStatesReadBuffer which shares the same byte array with blockReadBuffer. See BlockWriter and BlockLine for the block format.

WARNING: This API is experimental and might change in incompatible ways in the next release.