public class QueryIndexPermutation extends Object implements QueryIndexPermutationInterface
| Modifier and Type | Field and Description |
|---|---|
static DynamicOptionClient |
doc |
| Constructor and Description |
|---|
QueryIndexPermutation(String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Flush all information to disk as needed and release resources.
|
static DynamicOptionClient |
doc() |
int |
getBiggestSmallIndex()
Get the largest value of small index returned so far.
|
int |
getSmallestIndex()
Get the smallest value of small index returned so far.
|
int |
internalDoPerm(int queryIndex,
int maxQueryIndexOccurrence)
Call this method when you know the queryIndex is currently in the queryIndexPermutation map.
|
boolean |
isInMap(int queryIndex)
Return true if the query index is kept in memory with its small index, false otherwise.
|
boolean |
isOnDisk(int queryIndex)
Indicates that the query index is now on disk.
|
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 limit)
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 static DynamicOptionClient doc
public QueryIndexPermutation(String filename)
public static DynamicOptionClient doc()
public void reset()
public 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 QueryIndexPermutationInterfacepublic final void setSmallestIndex(int value)
QueryIndexPermutationInterfacesetSmallestIndex in interface QueryIndexPermutationInterfacevalue - value for set.public final 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 int internalDoPerm(int queryIndex,
int maxQueryIndexOccurrence)
queryIndex - maxQueryIndexOccurrence - public void setPruneLimit(byte limit)
QueryIndexPermutationInterfacesetPruneLimit in interface QueryIndexPermutationInterfacelimit - query index occurrence limit.public void close()
QueryIndexPermutationInterfaceclose in interface QueryIndexPermutationInterfacepublic boolean isInMap(int queryIndex)
queryIndex - public boolean isOnDisk(int queryIndex)
queryIndex - Copyright © 2018 Campagne Laboratory. All rights reserved.