public class NoOpPermutation extends Object implements QueryIndexPermutationInterface
| Constructor and Description |
|---|
NoOpPermutation() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Flush all information to disk as needed and release resources.
|
int |
getBiggestSmallIndex()
Get the largest value of small index returned so far.
|
int |
getSmallestIndex()
Get the smallest value of small index returned so far.
|
void |
makeSmallIndices(Alignments.AlignmentEntry.Builder entry)
Give the entry a small index according to the entry query occurrence limit, or to the global prune limit.
|
Alignments.AlignmentEntry |
makeSmallIndices(Alignments.AlignmentEntry entry)
Give the entry a small index according to the entry query occurrence limit, or to the global prune limit.
|
int |
permutate(int queryIndex)
Permutate a query index and return the smaller value.
|
int |
permutate(int queryIndex,
int maxQueryIndexOccurrence)
Permutate a query index and return the smaller value.
|
void |
reset() |
void |
setBiggestSmallIndex(int value)
Set the largest value of small index returned so far.
|
void |
setPruneLimit(byte x)
Query indices will pruned from the permutation map after they have been requested x times.
|
void |
setSmallestIndex(int value)
Set the smallest value of small index returned so far.
|
public void reset()
public void setSmallestIndex(int value)
QueryIndexPermutationInterfacesetSmallestIndex in interface QueryIndexPermutationInterfacevalue - value for set.public void setBiggestSmallIndex(int value)
QueryIndexPermutationInterfacesetBiggestSmallIndex in interface QueryIndexPermutationInterfacevalue - value for set.public int permutate(int queryIndex)
QueryIndexPermutationInterfacepermutate in interface QueryIndexPermutationInterfacequeryIndex - the large randomly distributed query index to permutate to a monotonically increasing value.public int permutate(int queryIndex,
int maxQueryIndexOccurrence)
QueryIndexPermutationInterfacepermutate in interface QueryIndexPermutationInterfacemaxQueryIndexOccurrence - the maximum number of times the queryIndex can be requested before it is pruned and written to disk.public void setPruneLimit(byte x)
QueryIndexPermutationInterfacesetPruneLimit in interface QueryIndexPermutationInterfacex - query index occurrence limit.public void close()
QueryIndexPermutationInterfaceclose in interface QueryIndexPermutationInterfacepublic Alignments.AlignmentEntry makeSmallIndices(Alignments.AlignmentEntry entry)
QueryIndexPermutationInterfacemakeSmallIndices in interface QueryIndexPermutationInterfaceentry - alignment entry.public void makeSmallIndices(Alignments.AlignmentEntry.Builder entry)
QueryIndexPermutationInterfacemakeSmallIndices in interface QueryIndexPermutationInterfaceentry - alignment entry builder.public int getSmallestIndex()
QueryIndexPermutationInterfacegetSmallestIndex in interface QueryIndexPermutationInterfacepublic int getBiggestSmallIndex()
QueryIndexPermutationInterfacegetBiggestSmallIndex in interface QueryIndexPermutationInterfaceCopyright © 2017 Campagne Laboratory. All rights reserved.