private boolean checkIfKeyExists ( String key ) { if ( aggregationsKeySet == null ) { aggregationsKeySet = new HashSet < String > ( ) ; } return aggregationsKeySet . add ( key ) ; }
Checks whether key exist in ES Query .