Method GetCurrentSegmentGeneration
GetCurrentSegmentGeneration(String[])
Get the generation (N) of the current segments_N file from a list of files.
Declaration
public static long GetCurrentSegmentGeneration(String[] files)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | files | -- array of file names to check |
Returns
Type | Description |
---|---|
System.Int64 |
GetCurrentSegmentGeneration(Directory)
Get the generation (N) of the current segments_N file in the directory.
Declaration
public static long GetCurrentSegmentGeneration(Directory directory)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory | -- directory to search for the latest segments_N file |
Returns
Type | Description |
---|---|
System.Int64 |