public class SonarDuplicationsIndex extends AbstractCloneIndex
Constructor and Description |
---|
SonarDuplicationsIndex() |
SonarDuplicationsIndex(DbDuplicationsIndex db) |
Modifier and Type | Method and Description |
---|---|
Collection<Block> |
getByResource(Resource resource,
String resourceKey) |
Collection<Block> |
getByResourceId(String resourceId)
Performs search of blocks for specified resource.
|
Collection<Block> |
getBySequenceHash(ByteArray hash)
Performs search of blocks for specified hash value.
|
void |
insert(Block block)
Adds specified block into index.
|
void |
insert(Resource resource,
Collection<Block> blocks) |
public SonarDuplicationsIndex()
public SonarDuplicationsIndex(DbDuplicationsIndex db)
public void insert(Resource resource, Collection<Block> blocks)
public Collection<Block> getByResource(Resource resource, String resourceKey)
public Collection<Block> getBySequenceHash(ByteArray hash)
CloneIndex
public Collection<Block> getByResourceId(String resourceId)
CloneIndex
public void insert(Block block)
CloneIndex
Copyright © 2009-2012 SonarSource. All Rights Reserved.