public class BlockRank
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BlockRank.IndexRetrieval |
Constructor and Description |
---|
BlockRank() |
Modifier and Type | Method and Description |
---|---|
static ReferenceContainerCache<WebStructureGraph.HostReference> |
collect(SeedDB seeds,
WebStructureGraph myGraph,
int maxcount)
collect host index information from other peers.
|
static ReferenceContainerCache<WebStructureGraph.HostReference> |
loadHostIndex(java.io.File file) |
static int |
ranking(byte[] hash,
BinSearch[] rankingTable) |
static void |
saveHostIndex(ReferenceContainerCache<WebStructureGraph.HostReference> index,
java.io.File file)
save the index into a BLOB
|
public static ReferenceContainerCache<WebStructureGraph.HostReference> collect(SeedDB seeds, WebStructureGraph myGraph, int maxcount)
seeds
- public static void saveHostIndex(ReferenceContainerCache<WebStructureGraph.HostReference> index, java.io.File file)
index
- file
- public static ReferenceContainerCache<WebStructureGraph.HostReference> loadHostIndex(java.io.File file)
public static int ranking(byte[] hash, BinSearch[] rankingTable)