org.sonar.plugins.cpd.index
Class SonarDuplicationsIndex
java.lang.Object
org.sonar.duplications.index.AbstractCloneIndex
org.sonar.plugins.cpd.index.SonarDuplicationsIndex
- All Implemented Interfaces:
- CloneIndex
public class SonarDuplicationsIndex
- extends AbstractCloneIndex
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SonarDuplicationsIndex
public SonarDuplicationsIndex()
SonarDuplicationsIndex
public SonarDuplicationsIndex(DbDuplicationsIndex db)
insert
public void insert(Resource resource,
Collection<Block> blocks)
getByResource
public Collection<Block> getByResource(Resource resource,
String resourceKey)
getBySequenceHash
public Collection<Block> getBySequenceHash(ByteArray hash)
- Description copied from interface:
CloneIndex
- Performs search of blocks for specified hash value.
- Returns:
- collection of blocks from index with specified hash and empty collection if nothing found
getByResourceId
public Collection<Block> getByResourceId(String resourceId)
- Description copied from interface:
CloneIndex
- Performs search of blocks for specified resource.
- Returns:
- collection of blocks from index for specified resource and empty collection if nothing found
insert
public void insert(Block block)
- Description copied from interface:
CloneIndex
- Adds specified block into index.
Copyright © 2009-2012 SonarSource. All Rights Reserved.