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, wait
definedValueOf, getIntersectingStripes, valueOf
public static final String MONO_STRIPER_NAME
public static final MonoStriper INSTANCE
public String getName()
SymbolStriper
SymbolStriperFactory
.getName
in interface SymbolStriper
public String toString()
SymbolStriper
toString
in interface SymbolStriper
toString
in class Object
SymbolStriper.getName()
public DataScheme getScheme()
SymbolStriper
null
if this striper works for any scheme.getScheme
in interface SymbolStriper
public int getStripeCount()
SymbolStriper
getStripeCount
in interface SymbolStriper
public int getStripeIndex(int cipher, String symbol)
SymbolStriper
Note 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 SymbolStriper
cipher
- symbol ciphersymbol
- symbol stringQDFilter.accept(QDContract, DataRecord, int, String)
public int getStripeIndex(String symbol)
SymbolStriper
getStripeIndex
in interface SymbolStriper
symbol
- symbol string (not-null)SymbolStriper.getStripeIndex(int, String)
public int getStripeIndex(char[] symbol, int offset, int length)
SymbolStriper
getStripeIndex
in interface SymbolStriper
symbol
- array that is the source of the symboloffset
- the initial offsetlength
- the symbol's lengthSymbolStriper.getStripeIndex(int, String)
public QDFilter getStripeFilter(int stripeIndex)
SymbolStriper
filter
corresponding for the given stripe index.getStripeFilter
in interface SymbolStriper
stripeIndex
- stripe indexCopyright © 2002–2025 Devexperts LLC. All rights reserved.