Method GetLastCommitGeneration
GetLastCommitGeneration(String[])
Get the generation of the most recent commit to the list of index files (N in the segments_N file).
Declaration
public static long GetLastCommitGeneration(string[] files)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | files | array of file names to check |
Returns
Type | Description |
---|---|
System.Int64 |
GetLastCommitGeneration(Directory)
Get the generation of the most recent commit to the index in this directory (N in the segments_N file).
Declaration
public static long GetLastCommitGeneration(Directory directory)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory | directory to search for the latest segments_N file |
Returns
Type | Description |
---|---|
System.Int64 |