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

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

Issue 320723002: Rename to BPlusTree. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/btree.dart b/pkg/analysis_server/lib/src/index/b_plus_tree.dart
similarity index 98%
rename from pkg/analysis_server/lib/src/index/btree.dart
rename to pkg/analysis_server/lib/src/index/b_plus_tree.dart
index b88789635ed17dc07c9797dc3d252c5f55badbc3..891feeb35f58476a8cd00ddf567dbc64516a453e 100644
--- a/pkg/analysis_server/lib/src/index/btree.dart
+++ b/pkg/analysis_server/lib/src/index/b_plus_tree.dart
@@ -2,13 +2,13 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library index.btree;
+library index.b_plus_tree;
/**
- * A simple B+Tree implementation.
+ * A simple B+ tree (http://en.wikipedia.org/wiki/B+_tree) implementation.
*/
-class BTree<K, V> {
+class BPlusTree<K, V> {
/**
* The [Comparator] to compare keys.
*/
@@ -29,7 +29,7 @@ class BTree<K, V> {
*/
_Node<K, V> _root;
- BTree(this._maxIndexKeys, this._maxLeafKeys, this._comparator) {
+ BPlusTree(this._maxIndexKeys, this._maxLeafKeys, this._comparator) {
_root = new _LeafNode(_maxLeafKeys, _comparator);
}
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/index/btree.dart » ('j') | pkg/analysis_server/test/index/b_plus_tree_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698