X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/8c383afd3c15f7a916cc14f43066a04d9a3e7612..f8a441d3986f96851c8201fe82c5ce328b582d05:/emufs/indice_bplus.h?ds=sidebyside diff --git a/emufs/indice_bplus.h b/emufs/indice_bplus.h index 7e88a2c..81963fc 100644 --- a/emufs/indice_bplus.h +++ b/emufs/indice_bplus.h @@ -18,17 +18,20 @@ typedef struct _index_dat_ { typedef struct nodo_b_plus { int nivel; /** Nivel del nodo */ int cant_claves; /** Cantidad de claves en el nodo */ - int *claves; /** Claves del nodo */ + CLAVE *claves; /** Claves del nodo */ int *hijos; /** Para nodo interno, ref nodos sucesores. Nodo hoja, ref a nro bloque en .dat */ } NODO_B_PLUS; /** TODO */ -int emufs_b_plus_crear(INDEX *idx); -int emufs_b_plus_get_bloque(INDEX *idx, INDEX_DAT *query, int num_node); -int emufs_b_plus_insertar(INDEX *idx, INDEX_DAT *query); +int emufs_b_plus_crear(INDICE *idx); +int emufs_b_plus_get_bloque(INDICE *idx, INDEX_DAT *query, int num_node); +int emufs_b_plus_insertar(INDICE *idx, INDEX_DAT *query); int emufs_b_plus_actualizar_nodo(INDEX_DAT *dataset); int emufs_b_plus_buscar(); int emufs_b_plus_destuir(); -NODO_B_PLUS *b_plus_leer_nodo(INDEX *idx, int num); +int emufs_b_plus_eliminar(INDICE *idx, CLAVE key, int num_node); +int b_plus_existe_clave(INDICE *idx, INDEX_DAT *query, int num_node); +NODO_B_PLUS *b_plus_leer_nodo(INDICE *idx, int num); +int b_plus_buscar_prepost(INDICE *idx, CLAVE key, int num_node, CLAVE *prepostkey, int search_type); #endif