int bajas = atoi (argv[3]);
KeyManager<std::string> km;
- BTree tree ("test.idx", bloque, BTree::TYPE_UNIQUE, BTree::KEY_VARIABLE);
+ BTree tree ("test.idx", bloque, BTree::TYPE_IDENTIFICACION, BTree::KEY_VARIABLE);
std::list<std::string> lst;
std::list<std::string>::iterator it;
it = lst.begin ();
while (it != lst.end ()) {
- ClaveVariable c(*it);
+ ClaveVariable c(*it, 0);
double l = Random::Double (0.0f, 1.0f);
std::cout << l << " >= " << paltas << std::endl;
} else {
/* Tengo que borrar una clave entre 0 e "i" de la lista
* porque son las que ya agregue. */
- ClaveVariable c(km.GetRandom ());
+ ClaveVariable c(km.GetRandom (), 0);
try {
tree.DelKey (c);
int bien = 0;
int mal = 0;
while (it != l.end ()) {
- ClaveVariable c(*it);
+ ClaveVariable c(*it, 0);
BTreeFindResult *r;
r = tree.FindKey (c);