org.apache.lucene.analysis.Token.clearNoTermBuffer()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(7.0k)|赞(0)|评价(0)|浏览(180)

本文整理了Java中org.apache.lucene.analysis.Token.clearNoTermBuffer()方法的一些代码示例,展示了Token.clearNoTermBuffer()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Token.clearNoTermBuffer()方法的具体详情如下:
包路径:org.apache.lucene.analysis.Token
类名称:Token
方法名:clearNoTermBuffer

Token.clearNoTermBuffer介绍

暂无

代码示例

代码示例来源:origin: org.apache.lucene/com.springsource.org.apache.lucene

/** Shorthand for calling {@link #clear},
 *  {@link #setTermBuffer(String)},
 *  {@link #setStartOffset},
 *  {@link #setEndOffset}
 *  {@link #setType}
 *  @return this Token instance */
public Token reinit(String newTerm, int newStartOffset, int newEndOffset, String newType) {
 clearNoTermBuffer();
 setTermBuffer(newTerm);
 startOffset = newStartOffset;
 endOffset = newEndOffset;
 type = newType;
 return this;
}

代码示例来源:origin: org.apache.lucene/lucene-core-jfrog

/** Shorthand for calling {@link #clear},
 *  {@link #setTermBuffer(String)},
 *  {@link #setStartOffset},
 *  {@link #setEndOffset}
 *  {@link #setType}
 *  @return this Token instance */
public Token reinit(String newTerm, int newStartOffset, int newEndOffset, String newType) {
 clearNoTermBuffer();
 setTermBuffer(newTerm);
 startOffset = newStartOffset;
 endOffset = newEndOffset;
 type = newType;
 return this;
}

代码示例来源:origin: org.apache.lucene/com.springsource.org.apache.lucene

/** Shorthand for calling {@link #clear},
 *  {@link #setTermBuffer(char[], int, int)},
 *  {@link #setStartOffset},
 *  {@link #setEndOffset},
 *  {@link #setType}
 *  @return this Token instance */
public Token reinit(char[] newTermBuffer, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset, String newType) {
 clearNoTermBuffer();
 payload = null;
 positionIncrement = 1;
 setTermBuffer(newTermBuffer, newTermOffset, newTermLength);
 startOffset = newStartOffset;
 endOffset = newEndOffset;
 type = newType;
 return this;
}

代码示例来源:origin: org.apache.lucene/lucene-core-jfrog

/** Shorthand for calling {@link #clear},
 *  {@link #setTermBuffer(char[], int, int)},
 *  {@link #setStartOffset},
 *  {@link #setEndOffset},
 *  {@link #setType}
 *  @return this Token instance */
public Token reinit(char[] newTermBuffer, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset, String newType) {
 clearNoTermBuffer();
 payload = null;
 positionIncrement = 1;
 setTermBuffer(newTermBuffer, newTermOffset, newTermLength);
 startOffset = newStartOffset;
 endOffset = newEndOffset;
 type = newType;
 return this;
}

代码示例来源:origin: org.apache.lucene/com.springsource.org.apache.lucene

/** Shorthand for calling {@link #clear},
 *  {@link #setTermBuffer(char[], int, int)},
 *  {@link #setStartOffset},
 *  {@link #setEndOffset}
 *  {@link #setType} on Token.DEFAULT_TYPE
 *  @return this Token instance */
public Token reinit(char[] newTermBuffer, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset) {
 clearNoTermBuffer();
 setTermBuffer(newTermBuffer, newTermOffset, newTermLength);
 startOffset = newStartOffset;
 endOffset = newEndOffset;
 type = DEFAULT_TYPE;
 return this;
}

代码示例来源:origin: org.apache.lucene/com.springsource.org.apache.lucene

/** Shorthand for calling {@link #clear},
 *  {@link #setTermBuffer(String, int, int)},
 *  {@link #setStartOffset},
 *  {@link #setEndOffset}
 *  {@link #setType} on Token.DEFAULT_TYPE
 *  @return this Token instance */
public Token reinit(String newTerm, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset) {
 clearNoTermBuffer();
 setTermBuffer(newTerm, newTermOffset, newTermLength);
 startOffset = newStartOffset;
 endOffset = newEndOffset;
 type = DEFAULT_TYPE;
 return this;
}

代码示例来源:origin: org.apache.lucene/lucene-core-jfrog

/** Shorthand for calling {@link #clear},
 *  {@link #setTermBuffer(char[], int, int)},
 *  {@link #setStartOffset},
 *  {@link #setEndOffset}
 *  {@link #setType} on Token.DEFAULT_TYPE
 *  @return this Token instance */
public Token reinit(char[] newTermBuffer, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset) {
 clearNoTermBuffer();
 setTermBuffer(newTermBuffer, newTermOffset, newTermLength);
 startOffset = newStartOffset;
 endOffset = newEndOffset;
 type = DEFAULT_TYPE;
 return this;
}

代码示例来源:origin: org.apache.lucene/lucene-core-jfrog

/** Shorthand for calling {@link #clear},
 *  {@link #setTermBuffer(String, int, int)},
 *  {@link #setStartOffset},
 *  {@link #setEndOffset}
 *  {@link #setType} on Token.DEFAULT_TYPE
 *  @return this Token instance */
public Token reinit(String newTerm, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset) {
 clearNoTermBuffer();
 setTermBuffer(newTerm, newTermOffset, newTermLength);
 startOffset = newStartOffset;
 endOffset = newEndOffset;
 type = DEFAULT_TYPE;
 return this;
}

代码示例来源:origin: org.apache.lucene/com.springsource.org.apache.lucene

/** Shorthand for calling {@link #clear},
 *  {@link #setTermBuffer(String, int, int)},
 *  {@link #setStartOffset},
 *  {@link #setEndOffset}
 *  {@link #setType}
 *  @return this Token instance */
public Token reinit(String newTerm, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset, String newType) {
 clearNoTermBuffer();
 setTermBuffer(newTerm, newTermOffset, newTermLength);
 startOffset = newStartOffset;
 endOffset = newEndOffset;
 type = newType;
 return this;
}

代码示例来源:origin: org.apache.lucene/com.springsource.org.apache.lucene

/** Shorthand for calling {@link #clear},
 *  {@link #setTermBuffer(String)},
 *  {@link #setStartOffset},
 *  {@link #setEndOffset}
 *  {@link #setType} on Token.DEFAULT_TYPE
 *  @return this Token instance */
public Token reinit(String newTerm, int newStartOffset, int newEndOffset) {
 clearNoTermBuffer();
 setTermBuffer(newTerm);
 startOffset = newStartOffset;
 endOffset = newEndOffset;
 type = DEFAULT_TYPE;
 return this;
}

代码示例来源:origin: org.apache.lucene/lucene-core-jfrog

/** Shorthand for calling {@link #clear},
 *  {@link #setTermBuffer(String, int, int)},
 *  {@link #setStartOffset},
 *  {@link #setEndOffset}
 *  {@link #setType}
 *  @return this Token instance */
public Token reinit(String newTerm, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset, String newType) {
 clearNoTermBuffer();
 setTermBuffer(newTerm, newTermOffset, newTermLength);
 startOffset = newStartOffset;
 endOffset = newEndOffset;
 type = newType;
 return this;
}

代码示例来源:origin: org.apache.lucene/lucene-core-jfrog

/** Shorthand for calling {@link #clear},
 *  {@link #setTermBuffer(String)},
 *  {@link #setStartOffset},
 *  {@link #setEndOffset}
 *  {@link #setType} on Token.DEFAULT_TYPE
 *  @return this Token instance */
public Token reinit(String newTerm, int newStartOffset, int newEndOffset) {
 clearNoTermBuffer();
 setTermBuffer(newTerm);
 startOffset = newStartOffset;
 endOffset = newEndOffset;
 type = DEFAULT_TYPE;
 return this;
}

代码示例来源:origin: gncloud/fastcatsearch

/** Shorthand for calling {@link #clear},
 *  {@link #copyBuffer(char[], int, int)},
 *  {@link #setOffset},
 *  {@link #setType} on Token.DEFAULT_TYPE
 *  @return this Token instance */
public Token reinit(char[] newTermBuffer, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset) {
 checkOffsets(newStartOffset, newEndOffset);
 clearNoTermBuffer();
 copyBuffer(newTermBuffer, newTermOffset, newTermLength);
 startOffset = newStartOffset;
 endOffset = newEndOffset;
 type = DEFAULT_TYPE;
 return this;
}

代码示例来源:origin: gncloud/fastcatsearch

/** Shorthand for calling {@link #clear},
 *  {@link #copyBuffer(char[], int, int)},
 *  {@link #setOffset},
 *  {@link #setType}
 *  @return this Token instance */
public Token reinit(char[] newTermBuffer, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset, String newType) {
 checkOffsets(newStartOffset, newEndOffset);
 clearNoTermBuffer();
 copyBuffer(newTermBuffer, newTermOffset, newTermLength);
 payload = null;
 positionIncrement = 1;
 startOffset = newStartOffset;
 endOffset = newEndOffset;
 type = newType;
 return this;
}

相关文章