public class BigBinarySearcher extends BinarySearcher
| Modifier and Type | Field and Description |
|---|---|
static int |
THREADS_NO_LIMIT |
| Constructor and Description |
|---|
BigBinarySearcher() |
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
searchBigBytes(byte[] srcBytes,
byte[] searchBytes)
Search bytes faster in a concurrent processing.
|
List<Integer> |
searchBigBytes(byte[] srcBytes,
byte[] searchBytes,
int numOfThreads)
Search bytes faster in a concurrent processing with concurrency level.
|
void |
setBufferSize(int bufferSize)
Set buffer size for searching a sequence of bytes Increased the size of
buffer does not means improving a performance
|
void |
setMaxNumOfThreads(int maxNumOfThreads)
Set max number of thread to concurrent access to byte[] data
Increased the number of threads does not means improving a performance |
indexOf, indexOf, indexOf, searchBytes, searchBytes, searchBytespublic static final int THREADS_NO_LIMIT
public void setBufferSize(int bufferSize)
bufferSize - public void setMaxNumOfThreads(int maxNumOfThreads)
maxNumOfThreads - public List<Integer> searchBigBytes(byte[] srcBytes, byte[] searchBytes)
srcBytes - searchBytes - Copyright © 2016. All rights reserved.