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.
|
getFieldNames
public 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
Commits
listCommits
in interface Commits
LukeException
- - if an internal error occurs when accessing indexpublic Optional<Commit> getCommit(long commitGen) throws LukeException
Commits
getCommit
in interface Commits
commitGen
- - generationLukeException
- - if an internal error occurs when accessing indexpublic List<File> getFiles(long commitGen) throws LukeException
Commits
getFiles
in interface Commits
commitGen
- - generationLukeException
- - if an internal error occurs when accessing indexpublic List<Segment> getSegments(long commitGen) throws LukeException
Commits
getSegments
in interface Commits
commitGen
- - generationLukeException
- - if an internal error occurs when accessing indexpublic Map<String,String> getSegmentAttributes(long commitGen, String name) throws LukeException
Commits
getSegmentAttributes
in interface Commits
commitGen
- - generationname
- - segment nameLukeException
- - if an internal error occurs when accessing indexpublic Map<String,String> getSegmentDiagnostics(long commitGen, String name) throws LukeException
Commits
getSegmentDiagnostics
in interface Commits
commitGen
- - generationname
- - segment nameLukeException
- - if an internal error occurs when accessing indexpublic Optional<Codec> getSegmentCodec(long commitGen, String name) throws LukeException
Commits
getSegmentCodec
in interface Commits
commitGen
- - generationname
- - segment nameLukeException
- - if an internal error occurs when accessing indexCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.