Java org.apache.lucene.index SegmentInfo fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.index SegmentInfo fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.index SegmentInfo.

The text is from its open source code.

Field

intNO
Used by some member fields to mean not present (e.g., norms, deletions).
intYES
Used by some member fields to mean present (e.g., norms, deletions).
Mapattributes
SetsetFiles

Method

voidaddFile(String file)
Add this file to the set of files written for this segment.
Setfiles()
Return all files referenced by this SegmentInfo.
StringgetAttribute(String key)
Get a codec attribute value, or null if it does not exist
CodecgetCodec()
Return Codec that wrote this segment.
MapgetDiagnostics()
Returns diagnostics saved into the segment when it was written.
byte[]getId()
Return the id that uniquely identifies this segment.
booleangetUseCompoundFile()
Returns true if this segment is stored as a compound file; else, false.
VersiongetVersion()
Returns the version of the code which wrote the segment.
voidsetCodec(Codec codec)
Can only be called once.