Relations with indexes
=======================
0) create data structure
2) enter new author
-- search ---
3) search for author by firstname
4) search for author by lastname
5) search for author by birthyear
-- delete ---
6) delete author with search by firstname
7) delete author with search by lastname
8) delete author with search by birthyear
-- print ----
9) print primary file
a) print firstname index
b) print lastname index
c) print birthyear index
q) quit
> 0
creating relation...fLast = 4294967264
[OK]
creating index (firstname)... [OK]
creating index (lastname)... [OK]
creating index (birthyear)... [OK]
subscribe index (firstname)... [OK]
subscribe index (lastname)... [OK]
subscribe index (birthyear)... [OK]
Relations with indexes
=======================
0) create data structure
2) enter new author
-- search ---
3) search for author by firstname
4) search for author by lastname
5) search for author by birthyear
-- delete ---
6) delete author with search by firstname
7) delete author with search by lastname
8) delete author with search by birthyear
-- print ----
9) print primary file
a) print firstname index
b) print lastname index
c) print birthyear index
q) quit
> 2
input author information (0 if complete)
firstname: hallo
lastname: hallo
birthyear: 1234
creating author... [OK]
inserting author... [OK]
input author information (0 if complete)
firstname: ollah
lastname: ollah
birthyear: 1324
creating author... [OK]
inserting author... [OK]
input author information (0 if complete)
firstname: 0
Relations with indexes
=======================
0) create data structure
2) enter new author
-- search ---
3) search for author by firstname
4) search for author by lastname
5) search for author by birthyear
-- delete ---
6) delete author with search by firstname
7) delete author with search by lastname
8) delete author with search by birthyear
-- print ----
9) print primary file
a) print firstname index
b) print lastname index
c) print birthyear index
q) quit
> a
hallo <--> 0
ollah <--> 32
Relations with indexes
=======================
0) create data structure
2) enter new author
-- search ---
3) search for author by firstname
4) search for author by lastname
5) search for author by birthyear
-- delete ---
6) delete author with search by firstname
7) delete author with search by lastname
8) delete author with search by birthyear
-- print ----
9) print primary file
a) print firstname index
b) print lastname index
c) print birthyear index
q) quit
> b
hallo <--> 0
ollah <--> 32
Relations with indexes
=======================
0) create data structure
2) enter new author
-- search ---
3) search for author by firstname
4) search for author by lastname
5) search for author by birthyear
-- delete ---
6) delete author with search by firstname
7) delete author with search by lastname
8) delete author with search by birthyear
-- print ----
9) print primary file
a) print firstname index
b) print lastname index
c) print birthyear index
q) quit
> c
1234 <--> 0
1324 <--> 32
Relations with indexes
=======================
0) create data structure
2) enter new author
-- search ---
3) search for author by firstname
4) search for author by lastname
5) search for author by birthyear
-- delete ---
6) delete author with search by firstname
7) delete author with search by lastname
8) delete author with search by birthyear
-- print ----
9) print primary file
a) print firstname index
b) print lastname index
c) print birthyear index
q) quit
> 6
search for firstname: hallo
hallo <--> 0
firstname: hallo
lastname: hallo
yearOfBirth: 1234
--------------------------------------------------------------------------------
really want to delete this author?
> y
delete author from firstname index...erasing position 0
[OK]
Relations with indexes
=======================
0) create data structure
2) enter new author
-- search ---
3) search for author by firstname
4) search for author by lastname
5) search for author by birthyear
-- delete ---
6) delete author with search by firstname
7) delete author with search by lastname
8) delete author with search by birthyear
-- print ----
9) print primary file
a) print firstname index
b) print lastname index
c) print birthyear index
q) quit
> a
ollah <--> 0
Relations with indexes
=======================
0) create data structure
2) enter new author
-- search ---
3) search for author by firstname
4) search for author by lastname
5) search for author by birthyear
-- delete ---
6) delete author with search by firstname
7) delete author with search by lastname
8) delete author with search by birthyear
-- print ----
9) print primary file
a) print firstname index
b) print lastname index
c) print birthyear index
q) quit
> b
ollah <--> 0
Relations with indexes
=======================
0) create data structure
2) enter new author
-- search ---
3) search for author by firstname
4) search for author by lastname
5) search for author by birthyear
-- delete ---
6) delete author with search by firstname
7) delete author with search by lastname
8) delete author with search by birthyear
-- print ----
9) print primary file
a) print firstname index
b) print lastname index
c) print birthyear index
q) quit
> c
1324 <--> 0
Relations with indexes
=======================
0) create data structure
2) enter new author
-- search ---
3) search for author by firstname
4) search for author by lastname
5) search for author by birthyear
-- delete ---
6) delete author with search by firstname
7) delete author with search by lastname
8) delete author with search by birthyear
-- print ----
9) print primary file
a) print firstname index
b) print lastname index
c) print birthyear index
q) quit
>