private static final class CollectionConfiguration.CRHost
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
converge_eq_factor |
private int |
cr_host_count |
private java.util.Map<java.lang.String,double[]> |
crt |
private double |
damping |
private RowHandleMap |
internal_links_counter |
private Segment.ReferenceReportCache |
rrCache |
private Segment |
segment |
Constructor and Description |
---|
CollectionConfiguration.CRHost(Segment segment,
Segment.ReferenceReportCache rrCache,
java.lang.String host,
double damping,
int converge_digits) |
Modifier and Type | Method and Description |
---|---|
boolean |
convergenceStep()
Use the crt cache to compute the next generation of crt values.
|
private boolean |
eqd(double a,
double b)
helper method to check if two doubles are equal using a specific number of digits
|
int |
getInternalLinks(byte[] id)
Calculate the number of internal links from a specific document, denoted by the document ID.
|
void |
log(java.util.Map<byte[],CollectionConfiguration.CRV> rm)
log out a complete CRHost set of urls and ranking values
|
java.util.Map<java.lang.String,CollectionConfiguration.CRV> |
normalize()
produce a map from IDs to CRV records, normalization entries containing the values that are stored to solr.
|
private final Segment segment
private final java.util.Map<java.lang.String,double[]> crt
private final int cr_host_count
private final RowHandleMap internal_links_counter
private double damping
private int converge_eq_factor
private Segment.ReferenceReportCache rrCache
public CollectionConfiguration.CRHost(Segment segment, Segment.ReferenceReportCache rrCache, java.lang.String host, double damping, int converge_digits)
public java.util.Map<java.lang.String,CollectionConfiguration.CRV> normalize()
public void log(java.util.Map<byte[],CollectionConfiguration.CRV> rm)
rm
- public int getInternalLinks(byte[] id)
id
- public boolean convergenceStep()
private boolean eqd(double a, double b)
a
- b
-