public final class MonoStriper extends Object implements SymbolStriper
| Modifier and Type | Field and Description |
|---|---|
static MonoStriper |
INSTANCE |
static String |
MONO_STRIPER_NAME |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns a string representation of this striper.
|
DataScheme |
getScheme()
Returns scheme that this striper works for.
|
int |
getStripeCount()
Returns the positive number of stripes that this striper splits into.
|
QDFilter |
getStripeFilter(int stripeIndex)
Returns
filter corresponding for the given stripe index. |
int |
getStripeIndex(char[] symbol,
int offset,
int length)
Returns the index of the stripe that the given symbol (represented as character array) falls into.
|
int |
getStripeIndex(int cipher,
String symbol)
Returns the index of the stripe that the given cipher-symbol pair falls into.
|
int |
getStripeIndex(String symbol)
Returns the index of the stripe that the given symbol falls into.
|
String |
toString()
Returns a string representation of this striper.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefinedValueOf, getIntersectingStripes, valueOfpublic static final String MONO_STRIPER_NAME
public static final MonoStriper INSTANCE
public String getName()
SymbolStriperSymbolStriperFactory.getName in interface SymbolStriperpublic String toString()
SymbolStripertoString in interface SymbolStripertoString in class ObjectSymbolStriper.getName()public DataScheme getScheme()
SymbolStripernull if this striper works for any scheme.getScheme in interface SymbolStriperpublic int getStripeCount()
SymbolStripergetStripeCount in interface SymbolStriperpublic int getStripeIndex(int cipher,
String symbol)
SymbolStriperNote that wildcard symbol should not be submitted to this method,
since it should be accepted by all stripes therefore making stripes intersecting each other.
getStripeIndex in interface SymbolStripercipher - symbol ciphersymbol - symbol stringQDFilter.accept(QDContract, DataRecord, int, String)public int getStripeIndex(String symbol)
SymbolStripergetStripeIndex in interface SymbolStripersymbol - symbol string (not-null)SymbolStriper.getStripeIndex(int, String)public int getStripeIndex(char[] symbol,
int offset,
int length)
SymbolStripergetStripeIndex in interface SymbolStripersymbol - array that is the source of the symboloffset - the initial offsetlength - the symbol's lengthSymbolStriper.getStripeIndex(int, String)public QDFilter getStripeFilter(int stripeIndex)
SymbolStriperfilter corresponding for the given stripe index.getStripeFilter in interface SymbolStriperstripeIndex - stripe indexCopyright © 2002–2025 Devexperts LLC. All rights reserved.