Package | Description |
---|---|
org.apache.lucene.analysis |
API and code to convert text into indexable/searchable tokens.
|
Modifier and Type | Method | Description |
---|---|---|
Token |
Token.clone(char[] newTermBuffer,
int newTermOffset,
int newTermLength,
int newStartOffset,
int newEndOffset) |
Makes a clone, but replaces the term buffer &
start/end offset in the process.
|
Token |
Token.reinit(char[] newTermBuffer,
int newTermOffset,
int newTermLength,
int newStartOffset,
int newEndOffset) |
Shorthand for calling
clear() ,
CharTermAttributeImpl.copyBuffer(char[], int, int) ,
setStartOffset(int) ,
setEndOffset(int)
setType(java.lang.String) on Token.DEFAULT_TYPE |
Token |
Token.reinit(char[] newTermBuffer,
int newTermOffset,
int newTermLength,
int newStartOffset,
int newEndOffset,
String newType) |
Shorthand for calling
clear() ,
CharTermAttributeImpl.copyBuffer(char[], int, int) ,
setStartOffset(int) ,
setEndOffset(int) ,
setType(java.lang.String) |
Token |
Token.reinit(String newTerm,
int newStartOffset,
int newEndOffset) |
Shorthand for calling
clear() ,
CharTermAttributeImpl.append(CharSequence) ,
setStartOffset(int) ,
setEndOffset(int)
setType(java.lang.String) on Token.DEFAULT_TYPE |
Token |
Token.reinit(String newTerm,
int newTermOffset,
int newTermLength,
int newStartOffset,
int newEndOffset) |
Shorthand for calling
clear() ,
CharTermAttributeImpl.append(CharSequence, int, int) ,
setStartOffset(int) ,
setEndOffset(int)
setType(java.lang.String) on Token.DEFAULT_TYPE |
Token |
Token.reinit(String newTerm,
int newTermOffset,
int newTermLength,
int newStartOffset,
int newEndOffset,
String newType) |
|
Token |
Token.reinit(String newTerm,
int newStartOffset,
int newEndOffset,
String newType) |
Shorthand for calling
clear() ,
CharTermAttributeImpl.append(CharSequence) ,
setStartOffset(int) ,
setEndOffset(int)
setType(java.lang.String) |
Modifier and Type | Method | Description |
---|---|---|
void |
Token.reinit(Token prototype) |
Copy the prototype token's fields into this one.
|
void |
Token.reinit(Token prototype,
char[] newTermBuffer,
int offset,
int length) |
Copy the prototype token's fields into this one, with a different term.
|
void |
Token.reinit(Token prototype,
String newTerm) |
Copy the prototype token's fields into this one, with a different term.
|
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.