Update HashQueryComponent.java

some optimization, still need some working