Java 类org.apache.lucene.util.automaton.UTF32ToUTF8 实例源码

项目:elasticsearch_my    文件:XFuzzySuggester.java   
@Override
protected Automaton convertAutomaton(Automaton a) {
  if (unicodeAware) {
    // FLORIAN EDIT: get converted Automaton from superclass
    Automaton utf8automaton = new UTF32ToUTF8().convert(super.convertAutomaton(a));
    // This automaton should not blow up during determinize:
    utf8automaton = Operations.determinize(utf8automaton, Integer.MAX_VALUE);
    return utf8automaton;
  } else {
    return super.convertAutomaton(a);
  }
}
项目:search    文件:FuzzySuggester.java   
@Override
protected Automaton convertAutomaton(Automaton a) {
  if (unicodeAware) {
    Automaton utf8automaton = new UTF32ToUTF8().convert(a);
    utf8automaton = Operations.determinize(utf8automaton, DEFAULT_MAX_DETERMINIZED_STATES);
    return utf8automaton;
  } else {
    return a;
  }
}
项目:read-open-source-code    文件:FuzzySuggester.java   
@Override
protected Automaton convertAutomaton(Automaton a) {
  if (unicodeAware) {
    Automaton utf8automaton = new UTF32ToUTF8().convert(a);
    BasicOperations.determinize(utf8automaton);
    return utf8automaton;
  } else {
    return a;
  }
}
项目:read-open-source-code    文件:FuzzySuggester.java   
@Override
protected Automaton convertAutomaton(Automaton a) {
  if (unicodeAware) {
    Automaton utf8automaton = new UTF32ToUTF8().convert(a);
    BasicOperations.determinize(utf8automaton);
    return utf8automaton;
  } else {
    return a;
  }
}
项目:read-open-source-code    文件:FuzzySuggester.java   
@Override
protected Automaton convertAutomaton(Automaton a) {
  if (unicodeAware) {
    Automaton utf8automaton = new UTF32ToUTF8().convert(a);
    utf8automaton = Operations.determinize(utf8automaton, DEFAULT_MAX_DETERMINIZED_STATES);
    return utf8automaton;
  } else {
    return a;
  }
}
项目:Maskana-Gestor-de-Conocimiento    文件:FuzzySuggester.java   
@Override
protected Automaton convertAutomaton(Automaton a) {
  if (unicodeAware) {
    Automaton utf8automaton = new UTF32ToUTF8().convert(a);
    BasicOperations.determinize(utf8automaton);
    return utf8automaton;
  } else {
    return a;
  }
}