public final class LuceneUtil extends Object
构造器和说明 |
---|
LuceneUtil() |
限定符和类型 | 方法和说明 |
---|---|
static long |
generationFromSegmentsFileName(String fileName)
Parse the generation off the segments file name and return it.
|
static long |
getCurrentSegmentGeneration(Directory directory)
Get the generation (N) of the current segments_N file in the directory.
|
static boolean |
isSegmentsFile(String name)
Check if the file is a segments_N file
|
static boolean |
isSegmentsGenFile(String name)
Check if the file is the segments.gen file
|
public static boolean isSegmentsFile(String name)
name
- public static boolean isSegmentsGenFile(String name)
name
- public static long getCurrentSegmentGeneration(Directory directory) throws IOException
directory
- -- directory to search for the latest segments_N fileIOException
public static long generationFromSegmentsFileName(String fileName)
Copyright © 2009 The Apache Software Foundation