1 | package org.greenstone.atea.morphia;
|
---|
2 |
|
---|
3 | import dev.morphia.annotations.*;
|
---|
4 |
|
---|
5 | @Entity("Websites")
|
---|
6 | public class WebsiteInfo {
|
---|
7 | //public final int id;
|
---|
8 | @Id
|
---|
9 | public final String siteFolderName;
|
---|
10 | public final String domain;
|
---|
11 |
|
---|
12 | public final int totalPages;
|
---|
13 | public final int countOfWebPagesWithBodyText;
|
---|
14 | public final int numPagesInMRI;
|
---|
15 |
|
---|
16 | public final long siteCrawledTimestamp;
|
---|
17 | public final boolean siteCrawlUnfinished;
|
---|
18 | public final boolean redoCrawl;
|
---|
19 |
|
---|
20 | public final String geoLocationCountryCode;
|
---|
21 | public final boolean urlContainsLangCodeInpath;
|
---|
22 |
|
---|
23 | public WebsiteInfo(/*int siteCount,*/ String siteFolderName, String domainOfSite,
|
---|
24 | int totalPages, int countOfWebPagesWithBodyText, int numPagesInMRI,
|
---|
25 | long siteCrawledTimestamp, boolean siteCrawlUnfinished, boolean redoCrawl,
|
---|
26 | String geoLocationCountryCode, boolean urlContainsLangCodeInpath)
|
---|
27 | {
|
---|
28 | //this.id = siteCount;
|
---|
29 | this.siteFolderName = siteFolderName;
|
---|
30 | this.domain = domainOfSite;
|
---|
31 |
|
---|
32 | this.totalPages = totalPages;
|
---|
33 | this.countOfWebPagesWithBodyText = countOfWebPagesWithBodyText;
|
---|
34 | this.numPagesInMRI = numPagesInMRI;
|
---|
35 |
|
---|
36 | this.siteCrawledTimestamp = siteCrawledTimestamp;
|
---|
37 | this.siteCrawlUnfinished = siteCrawlUnfinished;
|
---|
38 | this.redoCrawl = redoCrawl;
|
---|
39 |
|
---|
40 | this.geoLocationCountryCode = geoLocationCountryCode;
|
---|
41 | this.urlContainsLangCodeInpath = urlContainsLangCodeInpath;
|
---|
42 | }
|
---|
43 | }
|
---|