Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: pkg/analysis_server/lib/src/index/b_plus_tree.dart

Issue 324743003: A NodeManager implementation with encoding/decoding keys/values into pages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak and include index tests Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/index/b_plus_tree.dart
diff --git a/pkg/analysis_server/lib/src/index/b_plus_tree.dart b/pkg/analysis_server/lib/src/index/b_plus_tree.dart
index 0c346baf4df08388664d263e44bea61e16336672..5622fe399236b8fa9d0e7e9dfd4e90801b6dc1e7 100644
--- a/pkg/analysis_server/lib/src/index/b_plus_tree.dart
+++ b/pkg/analysis_server/lib/src/index/b_plus_tree.dart
@@ -232,7 +232,7 @@ class MemoryNodeManager<K, V> implements NodeManager<K, V, int> {
}
@override
- void writeIndex(int id, IndexNodeData<K, V> data) {
+ void writeIndex(int id, IndexNodeData<K, int> data) {
_indexDataMap[id] = data;
}
@@ -280,7 +280,7 @@ abstract class NodeManager<K, V, N> {
/**
* Writes information about the index node with the given identifier.
*/
- void writeIndex(N id, IndexNodeData<K, V> data);
+ void writeIndex(N id, IndexNodeData<K, N> data);
/**
* Writes information about the leaf node with the given identifier.

Powered by Google App Engine
This is Rietveld 408576698