jruby/docs BETA
Navigation
org.apache.lucene.codecs.lucene90 12
C DeflateWithPresetDictCompressionMode
C IndexedDISI
C LZ4WithPresetDictCompressionMode
C Lucene90CompoundFormat
C Lucene90DocValuesFormat
C Lucene90LiveDocsFormat
C Lucene90NormsFormat
C Lucene90PointsFormat
C Lucene90PointsReader
C Lucene90PointsWriter
C Lucene90StoredFieldsFormat
C Lucene90TermVectorsFormat
Lucene90CompoundFormat — members 3
C new()
M get_compound_reader(dir, si) CompoundDirectory
C write(dir, si, context)

org.apache.lucene.codecs.lucene90.Lucene90CompoundFormat

class final extends CompoundFormat 3 members

Lucene 9.0 compound file format

Files:

  • .cfs: An optional "virtual" file consisting of all the other index files for systems that frequently run out of file handles.
  • .cfe: The "virtual" compound file's entry table holding all entries in the corresponding .cfs file.

Description:

  • Compound (.cfs) --> Header, FileData FileCount, Footer
  • Compound Entry Table (.cfe) --> Header, FileCount, <FileName, DataOffset, DataLength> FileCount
  • Header --> IndexHeader
  • FileCount --> VInt
  • DataOffset,DataLength,Checksum --> UInt64
  • FileName --> String
  • FileData --> raw file data
  • Footer --> CodecFooter

Notes:

  • FileCount indicates how many files are contained in this compound file. The entry table that follows has that many entries.
  • Each directory entry contains a long pointer to the start of this file's data section, the files length, and a String with that file's name. The start of file's data section is aligned to 64 bytes to not introduce additional unaligned accesses with mmap.

Constructors

new

new ( )
Java: <init>()

Sole constructor.

Instance Methods

get_compound_reader

CompoundDirectory get_compound_reader ( Directory dir, SegmentInfo si )
Java: getCompoundReader(org.apache.lucene.store.Directory dir, org.apache.lucene.index.SegmentInfo si)

write

write ( Directory dir, SegmentInfo si, IOContext context )
Java: write(org.apache.lucene.store.Directory dir, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.store.IOContext context)
this work for additional information regarding copyright ownership.