| 1 |
/* |
| 2 |
* Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, |
| 3 |
* and the EPL 1.0 (https://h2database.com/html/license.html). |
| 4 |
* Initial Developer: H2 Group |
| 5 |
*/ |
| 6 |
package org.h2.build.indexer; |
| 7 |
|
| 8 |
/** |
| 9 |
* Represents a page of the indexer. |
| 10 |
*/ |
| 11 |
public class Page { |
| 12 |
|
| 13 |
/** |
| 14 |
* The page id. |
| 15 |
*/ |
| 16 |
int id; |
| 17 |
|
| 18 |
/** |
| 19 |
* The file name. |
| 20 |
*/ |
| 21 |
final String fileName; |
| 22 |
|
| 23 |
/** |
| 24 |
* The title of the page. |
| 25 |
*/ |
| 26 |
String title; |
| 27 |
|
| 28 |
/** |
| 29 |
* The total weight of this page. |
| 30 |
*/ |
| 31 |
// TODO page.totalWeight is currently not used |
| 32 |
int totalWeight; |
| 33 |
|
| 34 |
/** |
| 35 |
* The number of relations between a page and a word. |
| 36 |
*/ |
| 37 |
int relations; |
| 38 |
|
| 39 |
Page(int id, String fileName) { |
| 40 |
this.id = id; |
| 41 |
this.fileName = fileName; |
| 42 |
} |
| 43 |
|
| 44 |
@Override |
| 45 |
public String toString() { |
| 46 |
return "p" + id + "(" + fileName + ")"; |
| 47 |
} |
| 48 |
|
| 49 |
} |