org.apache.lucene.util.automaton.Operations.getCommonSuffixBytesRef()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(93)

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

Operations.getCommonSuffixBytesRef介绍

[英]Returns the longest BytesRef that is a suffix of all accepted strings. Worst case complexity: exponential in number of states (this calls determinize).
[中]返回最长的字节引用,该字节引用是所有接受字符串的后缀。最坏情况复杂性:状态数呈指数级(这称为determinize)。

代码示例

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

BytesRef suffix = Operations.getCommonSuffixBytesRef(binary, maxDeterminizedStates);
if (suffix.length == 0) {
 commonSuffixRef = null;

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

BytesRef suffix = Operations.getCommonSuffixBytesRef(binary, maxDeterminizedStates);
if (suffix.length == 0) {
 commonSuffixRef = null;

代码示例来源:origin: org.infinispan/infinispan-embedded-query

BytesRef suffix = Operations.getCommonSuffixBytesRef(binary, maxDeterminizedStates);
if (suffix.length == 0) {
 commonSuffixRef = null;

代码示例来源:origin: harbby/presto-connectors

BytesRef suffix = Operations.getCommonSuffixBytesRef(binary, maxDeterminizedStates);
if (suffix.length == 0) {
 commonSuffixRef = null;

相关文章