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

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

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

Operations.isTotal介绍

[英]Returns true if the given automaton accepts all strings. The automaton must be minimized.
[中]如果给定的自动机接受所有字符串,则返回true。机器人必须最小化。

代码示例

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

/**
 * Returns true if the given automaton accepts all strings.  The automaton must be minimized.
 */
public static boolean isTotal(Automaton a) {
 return isTotal(a, Character.MIN_CODE_POINT, Character.MAX_CODE_POINT);
}

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

isTotal = Operations.isTotal(automaton, 0, 0xff);
} else {
 isTotal = Operations.isTotal(automaton);

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

/**
 * Returns true if the given automaton accepts all strings.  The automaton must be minimized.
 */
public static boolean isTotal(Automaton a) {
 return isTotal(a, Character.MIN_CODE_POINT, Character.MAX_CODE_POINT);
}

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

/**
 * Returns true if the given automaton accepts all strings.  The automaton must be minimized.
 */
public static boolean isTotal(Automaton a) {
 return isTotal(a, Character.MIN_CODE_POINT, Character.MAX_CODE_POINT);
}

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

/**
 * Returns true if the given automaton accepts all strings.  The automaton must be minimized.
 */
public static boolean isTotal(Automaton a) {
 return isTotal(a, Character.MIN_CODE_POINT, Character.MAX_CODE_POINT);
}

代码示例来源:origin: org.elasticsearch.plugin/reindex-client

/**
 * Build the {@link CharacterRunAutomaton} that represents the reindex-from-remote whitelist and make sure that it doesn't whitelist
 * the world.
 */
static CharacterRunAutomaton buildRemoteWhitelist(List<String> whitelist) {
  if (whitelist.isEmpty()) {
    return new CharacterRunAutomaton(Automata.makeEmpty());
  }
  Automaton automaton = Regex.simpleMatchToAutomaton(whitelist.toArray(Strings.EMPTY_ARRAY));
  automaton = MinimizationOperations.minimize(automaton, Operations.DEFAULT_MAX_DETERMINIZED_STATES);
  if (Operations.isTotal(automaton)) {
    throw new IllegalArgumentException("Refusing to start because whitelist " + whitelist + " accepts all addresses. "
        + "This would allow users to reindex-from-remote any URL they like effectively having Elasticsearch make HTTP GETs "
        + "for them.");
  }
  return new CharacterRunAutomaton(automaton);
}

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

isTotal = Operations.isTotal(automaton, 0, 0xff);
} else {
 isTotal = Operations.isTotal(automaton);

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

isTotal = Operations.isTotal(automaton, 0, 0xff);
} else {
 isTotal = Operations.isTotal(automaton);

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

isTotal = Operations.isTotal(automaton, 0, 0xff);
} else {
 isTotal = Operations.isTotal(automaton);

相关文章