Example usage for org.apache.lucene.index IndexFileNames PENDING_SEGMENTS

List of usage examples for org.apache.lucene.index IndexFileNames PENDING_SEGMENTS

Introduction

In this page you can find the example usage for org.apache.lucene.index IndexFileNames PENDING_SEGMENTS.

Prototype

String PENDING_SEGMENTS

To view the source code for org.apache.lucene.index IndexFileNames PENDING_SEGMENTS.

Click Source Link

Document

Name of pending index segment file

Usage

From source file:com.github.lucene.store.jdbc.support.LuceneFileNames.java

License:Apache License

/**
 * Returns if the name is a segment file or not.
 *//* w  w  w .j a  va2s.  com*/
public static boolean isSegmentsFile(final String name) {
    logger.debug("LuceneFileNames.isSegmentsFile({})", name);
    return name.equals(IndexFileNames.SEGMENTS) || name.equals(IndexFileNames.OLD_SEGMENTS_GEN)
            || name.equals(IndexFileNames.PENDING_SEGMENTS);
}