Uses of Class
org.apache.lucene.util.CharsRef
-
Packages that use CharsRef Package Description org.apache.lucene.analysis.synonym Analysis components for Synonyms.org.apache.lucene.util Some utility classes. -
-
Uses of CharsRef in org.apache.lucene.analysis.synonym
Methods in org.apache.lucene.analysis.synonym that return CharsRef Modifier and Type Method Description static CharsRef
SynonymMap.Builder. analyze(Analyzer analyzer, String text, CharsRef reuse)
Sugar: analyzes the text with the analyzer and separates bySynonymMap.WORD_SEPARATOR
.static CharsRef
SynonymMap.Builder. join(String[] words, CharsRef reuse)
Sugar: just joins the provided terms withSynonymMap.WORD_SEPARATOR
.Methods in org.apache.lucene.analysis.synonym with parameters of type CharsRef Modifier and Type Method Description void
SynonymMap.Builder. add(CharsRef input, CharsRef output, boolean includeOrig)
Add a phrase->phrase synonym mapping.static CharsRef
SynonymMap.Builder. analyze(Analyzer analyzer, String text, CharsRef reuse)
Sugar: analyzes the text with the analyzer and separates bySynonymMap.WORD_SEPARATOR
.static CharsRef
SynonymMap.Builder. join(String[] words, CharsRef reuse)
Sugar: just joins the provided terms withSynonymMap.WORD_SEPARATOR
. -
Uses of CharsRef in org.apache.lucene.util
Methods in org.apache.lucene.util that return CharsRef Modifier and Type Method Description CharsRef
CharsRef. clone()
static CharsRef
CharsRef. deepCopyOf(CharsRef other)
Creates a new CharsRef that points to a copy of the chars fromother
Methods in org.apache.lucene.util that return types with arguments of type CharsRef Modifier and Type Method Description static Comparator<CharsRef>
CharsRef. getUTF16SortedAsUTF8Comparator()
Methods in org.apache.lucene.util with parameters of type CharsRef Modifier and Type Method Description boolean
CharsRef. charsEquals(CharsRef other)
int
CharsRef. compareTo(CharsRef other)
Signed int order comparisonvoid
CharsRef. copyChars(CharsRef other)
Copies the givenCharsRef
referenced content into this instance.static CharsRef
CharsRef. deepCopyOf(CharsRef other)
Creates a new CharsRef that points to a copy of the chars fromother
static void
UnicodeUtil. UTF8toUTF16(byte[] utf8, int offset, int length, CharsRef chars)
Interprets the given byte array as UTF-8 and converts to UTF-16.static void
UnicodeUtil. UTF8toUTF16(BytesRef bytesRef, CharsRef chars)
Utility method forUnicodeUtil.UTF8toUTF16(byte[], int, int, CharsRef)
-