Java 类org.apache.lucene.search.similarities.AfterEffect.NoAfterEffect 实例源码

项目:search    文件:DFRSimilarityFactory.java   
private AfterEffect parseAfterEffect(String expr) {
  if ("B".equals(expr)) {
    return new AfterEffectB();
  } else if ("L".equals(expr)) {
    return new AfterEffectL();
  } else if ("none".equals(expr)) {
    return new AfterEffect.NoAfterEffect();
  } else {
    throw new RuntimeException("Invalid afterEffect: " + expr);
  }
}
项目:NYBC    文件:DFRSimilarityFactory.java   
private AfterEffect parseAfterEffect(String expr) {
  if ("B".equals(expr)) {
    return new AfterEffectB();
  } else if ("L".equals(expr)) {
    return new AfterEffectL();
  } else if ("none".equals(expr)) {
    return new AfterEffect.NoAfterEffect();
  } else {
    throw new RuntimeException("Invalid afterEffect: " + expr);
  }
}
项目:search-core    文件:DFRSimilarityFactory.java   
private AfterEffect parseAfterEffect(String expr) {
  if ("B".equals(expr)) {
    return new AfterEffectB();
  } else if ("L".equals(expr)) {
    return new AfterEffectL();
  } else if ("none".equals(expr)) {
    return new AfterEffect.NoAfterEffect();
  } else {
    throw new RuntimeException("Invalid afterEffect: " + expr);
  }
}
项目:read-open-source-code    文件:DFRSimilarityFactory.java   
private AfterEffect parseAfterEffect(String expr) {
  if ("B".equals(expr)) {
    return new AfterEffectB();
  } else if ("L".equals(expr)) {
    return new AfterEffectL();
  } else if ("none".equals(expr)) {
    return new AfterEffect.NoAfterEffect();
  } else {
    throw new RuntimeException("Invalid afterEffect: " + expr);
  }
}
项目:read-open-source-code    文件:DFRSimilarityFactory.java   
private AfterEffect parseAfterEffect(String expr) {
  if ("B".equals(expr)) {
    return new AfterEffectB();
  } else if ("L".equals(expr)) {
    return new AfterEffectL();
  } else if ("none".equals(expr)) {
    return new AfterEffect.NoAfterEffect();
  } else {
    throw new RuntimeException("Invalid afterEffect: " + expr);
  }
}