コード例 #1
0
ファイル: Index.cs プロジェクト: Nightloyd/Inverted-Index
 public void SaveIndexToFile(String path)
 {
     FileHandler.SaveToXML <ConcurrentDictionary <String, Document> >(path, docs);
     FileHandler.SaveToXML <Lexicon>(path, lex);
 }
コード例 #2
0
ファイル: Index.cs プロジェクト: Nightloyd/Inverted-Index
 public static Index LoadIndexFromFile(String path)
 {
     return(new Index(FileHandler.LoadFromXML <Lexicon>(path), FileHandler.LoadFromXML <ConcurrentDictionary <String, Document> >(path)));
 }