public class DuplocatorHashCallback extends java.lang.Object implements FragmentsCollector
Constructor and Description |
---|
DuplocatorHashCallback(int lowerBound) |
DuplocatorHashCallback(int bound,
int discardCost) |
DuplocatorHashCallback(int bound,
int discardCost,
boolean readOnly) |
Modifier and Type | Method and Description |
---|---|
void |
add(int hash,
int cost,
PsiFragment frag) |
void |
add(int hash,
int cost,
PsiFragment frag,
NodeSpecificHasher visitor) |
DupInfo |
getInfo() |
void |
report(java.nio.file.Path dir,
Project project) |
void |
setReadOnly(boolean readOnly) |
static void |
writeDuplicates(java.nio.file.Path dir,
Project project,
DupInfo info) |
public DuplocatorHashCallback(int bound, int discardCost)
public DuplocatorHashCallback(int bound, int discardCost, boolean readOnly)
public DuplocatorHashCallback(int lowerBound)
public void setReadOnly(boolean readOnly)
public void add(int hash, int cost, PsiFragment frag, NodeSpecificHasher visitor)
public void add(int hash, int cost, PsiFragment frag)
add
in interface FragmentsCollector
public DupInfo getInfo()
public void report(java.nio.file.Path dir, Project project) throws java.io.IOException
java.io.IOException