sequence/xjoin/src/main/java/org/apache/solr/search/xjoin/XJoinValueSourceParser.java
/**
   * Provide a ValueSource for external process results, which are obtained from the
   * request context (having been placed there by XJoinSearchComponent).
   */
Provide a ValueSource for external process results, which are obtained from the
request context (having been placed there by XJoinSearchComponent).
Provide a ValueSource for external process results which are obtained from the request context ( having been placed there by XJoinSearchComponent ) .
@Override
  public ValueSource parse(FunctionQParser fqp) throws SyntaxError {
    String componentName = this.componentName != null ? this.componentName : fqp.parseArg();
    String attribute = this.attribute != null ? this.attribute : fqp.parseArg();
    XJoinSearchComponent xJoin = (XJoinSearchComponent)fqp.getReq().getCore().getSearchComponent(componentName);
    String joinField = xJoin.getJoinField();
    XJoinResults<?> results = (XJoinResults<?>)fqp.getReq().getContext().get(xJoin.getResultsTag());
    if (results == null) {
      throw new RuntimeException("No xjoin results in request context");
    }
    return new XJoinValueSource(joinField, results, attribute);
  }
@ Override public ValueSource parse ( FunctionQParser fqp ) throws SyntaxError { String componentName = this . componentName != null ? this . componentName : fqp . parseArg ( ) ; String attribute = this . attribute != null ? this . attribute : fqp . parseArg ( ) ; XJoinSearchComponent xJoin = ( XJoinSearchComponent ) fqp . getReq ( ) . getCore ( ) . getSearchComponent ( componentName ) ; String joinField = xJoin . getJoinField ( ) ; XJoinResults < ? > results = ( XJoinResults < ? > ) fqp . getReq ( ) . getContext ( ) . get ( xJoin . getResultsTag ( ) ) ; if ( results == null ) { throw new RuntimeException ( "No xjoin results in request context" ) ; } return new XJoinValueSource ( joinField , results , attribute ) ; }
Provide a ValueSource for external process results, which are obtained from the
 request context (having been placed there by XJoinSearchComponent).
Provide a ValueSource for external process results which are obtained from the request context ( having been placed there by XJoinSearchComponent ) .