-
Notifications
You must be signed in to change notification settings - Fork 3
/
analysis_db_structure
154 lines (140 loc) · 5.52 KB
/
analysis_db_structure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
mysql> show tables;
+-----------------------+
| Tables_in_web-crawler |
+-----------------------+
| Certificate |
| CrawlingSession |
| Header |
| HostInfo |
| HostInfo_todoUrls |
| PageInfo |
| hibernate_sequence |
+-----------------------+
7 rows in set (0.01 sec)
mysql> DESCRIBE Certificate;
+--------------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------------+--------------+------+-----+---------+-------+
| id | bigint(20) | NO | PRI | NULL | |
| basicConstraints | int(11) | YES | | NULL | |
| depth | smallint(6) | YES | | NULL | |
| encodedCertificate | longblob | YES | | NULL | |
| extendedKeyUsage | longtext | YES | | NULL | |
| issuer | longtext | YES | | NULL | |
| keyUsage | longtext | YES | | NULL | |
| pkAlgorithm | longtext | YES | | NULL | |
| publicKey | longblob | YES | | NULL | |
| signatureAlgorithm | longtext | YES | | NULL | |
| subject | longtext | YES | | NULL | |
| type | varchar(255) | YES | | NULL | |
| HOST_ID | bigint(20) | YES | MUL | NULL | |
+--------------------+--------------+------+-----+---------+-------+
13 rows in set (0.17 sec)
mysql> DESCRIBE CrawlingSession;
+-------------+------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+------------+------+-----+---------+-------+
| id | bigint(20) | NO | PRI | NULL | |
| description | longtext | YES | | NULL | |
| timeStarted | bigint(20) | YES | | NULL | |
+-------------+------------+------+-----+---------+-------+
3 rows in set (0.00 sec)
mysql> DESCRIBE Header;
+---------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+--------------+------+-----+---------+-------+
| id | bigint(20) | NO | PRI | NULL | |
| name | varchar(255) | YES | | NULL | |
| value | longtext | YES | | NULL | |
| PAGE_ID | bigint(20) | YES | MUL | NULL | |
+---------+--------------+------+-----+---------+-------+
4 rows in set (0.00 sec)
mysql> DESCRIBE HostInfo;
+-----------------+------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+------------+------+-----+---------+-------+
| id | bigint(20) | NO | PRI | NULL | |
| certificateSize | bigint(20) | YES | | NULL | |
| cipherSuite | longtext | YES | | NULL | |
| hostName | longtext | YES | | NULL | |
| lastVisited | bigint(20) | YES | | NULL | |
| needsClientAuth | tinyint(1) | YES | | NULL | |
| sslProtocol | longtext | YES | | NULL | |
| wantsClientAuth | tinyint(1) | YES | | NULL | |
| CRAWLING_ID | bigint(20) | YES | MUL | NULL | |
+-----------------+------------+------+-----+---------+-------+
9 rows in set (0.00 sec)
mysql> DESCRIBE HostInfo_todoUrls;
+-------------+------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+------------+------+-----+---------+-------+
| HostInfo_id | bigint(20) | NO | MUL | NULL | |
| todoUrls | longtext | YES | | NULL | |
+-------------+------------+------+-----+---------+-------+
2 rows in set (0.00 sec)
mysql> DESCRIBE PageInfo;
+------------+------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+------------+------+-----+---------+-------+
| id | bigint(20) | NO | PRI | NULL | |
| accessTime | bigint(20) | YES | | NULL | |
| url | longtext | YES | | NULL | |
| HOST_ID | bigint(20) | YES | MUL | NULL | |
+------------+------------+------+-----+---------+-------+
4 rows in set (0.00 sec)
mysql> DESCRIBE hibernate_sequence;
+----------+------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+------------+------+-----+---------+-------+
| next_val | bigint(20) | YES | | NULL | |
+----------+------------+------+-----+---------+-------+
1 row in set (0.00 sec)
mysql> SELECT COUNT(*) FROM Certificate;
+----------+
| COUNT(*) |
+----------+
| 17509 |
+----------+
1 row in set (0.10 sec)
mysql> SELECT COUNT(*) FROM CrawlingSession;
+----------+
| COUNT(*) |
+----------+
| 1 |
+----------+
1 row in set (0.00 sec)
mysql> SELECT COUNT(*) FROM Header;
+----------+
| COUNT(*) |
+----------+
| 69718 |
+----------+
1 row in set (0.01 sec)
mysql> SELECT COUNT(*) FROM HostInfo;
+----------+
| COUNT(*) |
+----------+
| 14187 |
+----------+
1 row in set (0.01 sec)
mysql> SELECT COUNT(*) FROM HostInfo_todoUrls;
+----------+
| COUNT(*) |
+----------+
| 25256 |
+----------+
1 row in set (0.01 sec)
mysql> SELECT COUNT(*) FROM PageInfo;
+----------+
| COUNT(*) |
+----------+
| 17278 |
+----------+
1 row in set (0.03 sec)
mysql> SELECT COUNT(*) FROM hibernate_sequence;
+----------+
| COUNT(*) |
+----------+
| 1 |
+----------+
1 row in set (0.00 sec)