Examples of forEachValueInDoc()


Examples of org.leskes.elasticfacets.fields.SingleValueHashedStringFieldData.forEachValueInDoc()

      SingleValueHashedStringFieldData sFieldData = (SingleValueHashedStringFieldData) type.load(reader, "mvalue");

      assertThat(sFieldData.hasValue(0),equalTo(true));
      final int[] count = {0};
      sFieldData.forEachValueInDoc(0, new HashedStringFieldData.HashedStringValueInDocProc() {
         @Override
         public void onValue(int docId, int Hash) {
            count[0]++;
         }
View Full Code Here

Examples of org.leskes.elasticfacets.fields.SingleValueHashedStringFieldData.forEachValueInDoc()

         }
      });
      assertThat(count[0], equalTo(1));

      count[0]=0;
      sFieldData.forEachValueInDoc(1, new HashedStringFieldData.HashedStringValueInDocProc() {
         @Override
         public void onValue(int docId, int Hash) {
            count[0]++;
         }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.