Examples of equalsToSerialized()


Examples of org.apache.lucene.facet.taxonomy.CategoryPath.equalsToSerialized()

    }
    p.serializeAppendTo(sb);
    p.serializeAppendTo(sb);
    p.serializeAppendTo(sb);
    offset=0;
    assertTrue(p.equalsToSerialized(sb, offset));
    assertEquals(p.hashCode(), CategoryPath.hashCodeOfSerialized(sb, offset));
    offset = tmp.setFromSerialized(sb, offset);
    assertEquals(p, tmp);
    assertTrue(p.equalsToSerialized(sb, offset));
    assertEquals(p.hashCode(), CategoryPath.hashCodeOfSerialized(sb, offset));
View Full Code Here

Examples of org.apache.lucene.facet.taxonomy.CategoryPath.equalsToSerialized()

    offset=0;
    assertTrue(p.equalsToSerialized(sb, offset));
    assertEquals(p.hashCode(), CategoryPath.hashCodeOfSerialized(sb, offset));
    offset = tmp.setFromSerialized(sb, offset);
    assertEquals(p, tmp);
    assertTrue(p.equalsToSerialized(sb, offset));
    assertEquals(p.hashCode(), CategoryPath.hashCodeOfSerialized(sb, offset));
    offset = tmp.setFromSerialized(sb, offset);
    assertEquals(p, tmp);
    assertTrue(p.equalsToSerialized(sb, offset));
    assertEquals(p.hashCode(), CategoryPath.hashCodeOfSerialized(sb, offset));
View Full Code Here

Examples of org.apache.lucene.facet.taxonomy.CategoryPath.equalsToSerialized()

    assertEquals(p, tmp);
    assertTrue(p.equalsToSerialized(sb, offset));
    assertEquals(p.hashCode(), CategoryPath.hashCodeOfSerialized(sb, offset));
    offset = tmp.setFromSerialized(sb, offset);
    assertEquals(p, tmp);
    assertTrue(p.equalsToSerialized(sb, offset));
    assertEquals(p.hashCode(), CategoryPath.hashCodeOfSerialized(sb, offset));
    offset = tmp.setFromSerialized(sb, offset);
    assertEquals(p, tmp);
    assertEquals(offset, sb.length());
   
View Full Code Here

Examples of org.apache.lucene.facet.taxonomy.CategoryPath.equalsToSerialized()

    // Test the equalsToSerialized variant with a prefixLen
    // We use p and prefixLengths set above.
    for (int prefixLen : prefixLengths) {
      sb = new StringBuilder();
      new CategoryPath(p, prefixLen).serializeAppendTo(sb);
      assertTrue(p.equalsToSerialized(prefixLen, sb, 0));
    }
   
    // Check also the false case of equalsToSerialized with prefixLen:
    sb = new StringBuilder();
    new CategoryPath().serializeAppendTo(sb);
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.