org.sonar.duplications.index
Interface CloneIndex

All Known Implementing Classes:
AbstractCloneIndex, MemoryCloneIndex, PackedMemoryCloneIndex, SonarDuplicationsIndex

public interface CloneIndex


Method Summary
 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.
 

Method Detail

getByResourceId

Collection<Block> getByResourceId(String resourceId)
Performs search of blocks for specified resource.

Returns:
collection of blocks from index for specified resource and empty collection if nothing found

getBySequenceHash

Collection<Block> getBySequenceHash(ByteArray hash)
Performs search of blocks for specified hash value.

Returns:
collection of blocks from index with specified hash and empty collection if nothing found

insert

void insert(Block block)
Adds specified block into index.



Copyright © 2009-2012 SonarSource. All Rights Reserved.