C# Класс org.apache.lucene.analysis.miscellaneous.WordDelimiterIterator

A BreakIterator-like API for iterating over subwords in text, according to WordDelimiterFilter rules. @lucene.internal
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DEFAULT_WORD_DELIM_TABLE sbyte[]

Private Properties

Свойство Тип Описание
WordDelimiterIterator org.apache.lucene.analysis.miscellaneous
WordDelimiterIterator org.apache.lucene.analysis.miscellaneous
charType int
endsWithPossessive bool
isBreak bool
next int
setBounds void
setText void
type int

Открытые методы

Метод Описание
getType ( int ch ) : sbyte

Computes the type of the given character

Приватные методы

Метод Описание
WordDelimiterIterator ( ) : org.apache.lucene.analysis.miscellaneous
WordDelimiterIterator ( sbyte charTypeTable, bool splitOnCaseChange, bool splitOnNumerics, bool stemEnglishPossessive ) : org.apache.lucene.analysis.miscellaneous

Create a new WordDelimiterIterator operating with the supplied rules.

charType ( int ch ) : int

Determines the type of the given character

endsWithPossessive ( int pos ) : bool

Determines if the text at the given position indicates an English possessive which should be removed

isBreak ( int lastType, int type ) : bool

Determines whether the transition from lastType to type indicates a break

next ( ) : int

Advance to the next subword in the string.

setBounds ( ) : void

Set the internal word bounds (remove leading and trailing delimiters). Note, if a possessive is found, don't remove it yet, simply note it.

setText ( char text, int length ) : void

Reset the text to a new value, and reset all state

type ( ) : int

Return the type of the current subword. This currently uses the type of the first character in the subword.

Описание методов

getType() публичный статический Метод

Computes the type of the given character
public static getType ( int ch ) : sbyte
ch int Character whose type is to be determined
Результат sbyte

Описание свойств

DEFAULT_WORD_DELIM_TABLE публичное статическое свойство

public static sbyte[] DEFAULT_WORD_DELIM_TABLE
Результат sbyte[]