| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.analysis.cn.smart.Utility
public class Utility
SmartChineseAnalyzer utility constants and methods
| Field Summary | |
|---|---|
static char[] | 
COMMON_DELIMITER
Delimiters will be filtered to this character by SegTokenFilter | 
static char[] | 
END_CHAR_ARRAY
 | 
static int | 
MAX_FREQUENCE
Maximum bigram frequency (used in the smoothing function).  | 
static char[] | 
NUMBER_CHAR_ARRAY
 | 
static String | 
SPACES
Space-like characters that need to be skipped: such as space, tab, newline, carriage return.  | 
static char[] | 
START_CHAR_ARRAY
 | 
static char[] | 
STRING_CHAR_ARRAY
 | 
| Constructor Summary | |
|---|---|
Utility()
 | 
|
| Method Summary | |
|---|---|
static int | 
compareArray(char[] larray,
             int lstartIndex,
             char[] rarray,
             int rstartIndex)
compare two arrays starting at the specified offsets.  | 
static int | 
compareArrayByPrefix(char[] shortArray,
                     int shortIndex,
                     char[] longArray,
                     int longIndex)
Compare two arrays, starting at the specified offsets, but treating shortArray as a prefix to longArray.  | 
static int | 
getCharType(char ch)
Return the internal CharType constant of a given character. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final char[] STRING_CHAR_ARRAY
public static final char[] NUMBER_CHAR_ARRAY
public static final char[] START_CHAR_ARRAY
public static final char[] END_CHAR_ARRAY
public static final char[] COMMON_DELIMITER
SegTokenFilter
public static final String SPACES
public static final int MAX_FREQUENCE
| Constructor Detail | 
|---|
public Utility()
| Method Detail | 
|---|
public static int compareArray(char[] larray,
                               int lstartIndex,
                               char[] rarray,
                               int rstartIndex)
larray - left arraylstartIndex - start offset into larrayrarray - right arrayrstartIndex - start offset into rarray
public static int compareArrayByPrefix(char[] shortArray,
                                       int shortIndex,
                                       char[] longArray,
                                       int longIndex)
compareArray(char[], int, char[], int)
shortArray - prefix arrayshortIndex - offset into shortArraylongArray - long array (word)longIndex - offset into longArray
compareArray(char[], int, char[], int)public static int getCharType(char ch)
CharType constant of a given character.
ch - input character
CharType describing the character type.CharType
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||