Package org.apache.lucene.codecs
Class FieldInfosFormat
java.lang.Object
org.apache.lucene.codecs.FieldInfosFormat
- Direct Known Subclasses:
Lucene90FieldInfosFormat
Encodes/decodes
FieldInfos
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract FieldInfos
read
(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, IOContext iocontext) abstract void
write
(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, FieldInfos infos, IOContext context) Writes the providedFieldInfos
to the directory.
-
Constructor Details
-
FieldInfosFormat
protected FieldInfosFormat()Sole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Details
-
read
public abstract FieldInfos read(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, IOContext iocontext) throws IOException Read theFieldInfos
previously written withwrite(org.apache.lucene.store.Directory, org.apache.lucene.index.SegmentInfo, java.lang.String, org.apache.lucene.index.FieldInfos, org.apache.lucene.store.IOContext)
.- Throws:
IOException
-
write
public abstract void write(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, FieldInfos infos, IOContext context) throws IOException Writes the providedFieldInfos
to the directory.- Throws:
IOException
-