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

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

Introduction

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

The text is from its open source code.

Field

StringSEGMENTS
Name of the index segment file
StringPENDING_SEGMENTS
Name of pending index segment file
StringOLD_SEGMENTS_GEN
Name of the generation reference file name

Method

StringfileNameFromGeneration(String base, String ext, long gen)
Computes the full file name from base, extension and generation.
StringgetExtension(String filename)
Return the extension (anything after the first '.'), or null if there is no '.'
StringparseSegmentName(String filename)
Parses the segment name out of the given file name.
StringsegmentFileName(String segmentName, String segmentSuffix, String ext)
Returns a file name that includes the given segment name, your own custom name and extension.
StringstripExtension(String filename)
Removes the extension (anything after the first '.'), otherwise returns the original filename.
StringstripSegmentName(String filename)
Strips the segment name out of the given file name.