Package org.apache.lucene.codecs
Class FieldInfosFormat
java.lang.Object
org.apache.lucene.codecs.FieldInfosFormat
- Direct Known Subclasses:
Lucene94FieldInfosFormat
Encodes/decodes
FieldInfos- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract FieldInfosread(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, IOContext iocontext) abstract voidwrite(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, FieldInfos infos, IOContext context) Writes the providedFieldInfosto 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 theFieldInfospreviously 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 providedFieldInfosto the directory.- Throws:
IOException
-