| Constructor and Description |
|---|
CommitsImpl(DirectoryReader reader,
String indexPath)
Constructs a CommitsImpl that holds the
Directory wrapped in the given DirectoryReader. |
CommitsImpl(Directory dir,
String indexPath)
Constructs a CommitsImpl that holds given
Directory. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Commit> |
getCommit(long commitGen)
Returns a commit of the specified generation.
|
List<File> |
getFiles(long commitGen)
Returns index files for the specified generation.
|
Map<String,String> |
getSegmentAttributes(long commitGen,
String name)
Returns internal codec attributes map for the specified segment.
|
Optional<Codec> |
getSegmentCodec(long commitGen,
String name)
Returns codec for the specified segment.
|
Map<String,String> |
getSegmentDiagnostics(long commitGen,
String name)
Returns diagnotics for the specified segment.
|
List<Segment> |
getSegments(long commitGen)
Returns segments for the specified generation.
|
List<Commit> |
listCommits()
Returns commits that exists in this Directory.
|
getFieldNamespublic CommitsImpl(Directory dir, String indexPath)
Directory.dir - - the index directoryindexPath - - the path to index directorypublic CommitsImpl(DirectoryReader reader, String indexPath)
Directory wrapped in the given DirectoryReader.reader - - the index readerindexPath - - the path to index directorypublic List<Commit> listCommits() throws LukeException
CommitslistCommits in interface CommitsLukeException - - if an internal error occurs when accessing indexpublic Optional<Commit> getCommit(long commitGen) throws LukeException
CommitsgetCommit in interface CommitscommitGen - - generationLukeException - - if an internal error occurs when accessing indexpublic List<File> getFiles(long commitGen) throws LukeException
CommitsgetFiles in interface CommitscommitGen - - generationLukeException - - if an internal error occurs when accessing indexpublic List<Segment> getSegments(long commitGen) throws LukeException
CommitsgetSegments in interface CommitscommitGen - - generationLukeException - - if an internal error occurs when accessing indexpublic Map<String,String> getSegmentAttributes(long commitGen, String name) throws LukeException
CommitsgetSegmentAttributes in interface CommitscommitGen - - generationname - - segment nameLukeException - - if an internal error occurs when accessing indexpublic Map<String,String> getSegmentDiagnostics(long commitGen, String name) throws LukeException
CommitsgetSegmentDiagnostics in interface CommitscommitGen - - generationname - - segment nameLukeException - - if an internal error occurs when accessing indexpublic Optional<Codec> getSegmentCodec(long commitGen, String name) throws LukeException
CommitsgetSegmentCodec in interface CommitscommitGen - - generationname - - segment nameLukeException - - if an internal error occurs when accessing indexCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.