/** * Use this when the user does a "select id:mynewidname " in the select clause of the grammar * @param select * @param output * @return */ public ParsedQuery addSelect( final String select, final String output ) { final String normalizedSelect = getSelect( select ); if ( normalizedSelect == null ) { return this; } final String normalizedOutput = getSelect( output ); if ( normalizedOutput == null ) { return this; } fieldMappings.put( select, new SelectFieldMapping( normalizedSelect, normalizedOutput ) ); return this; }
/** * Possiblly add a single select to our results */ public ParsedQuery addSelect( final String select ) { final String normalizedSelect = getSelect( select ); if ( normalizedSelect == null ) { return this; } fieldMappings.put( select, new SelectFieldMapping( normalizedSelect, normalizedSelect ) ); return this; }