Class WellKnownBinaryBytesRefMatcher<G extends org.elasticsearch.geometry.Geometry>

java.lang.Object
org.hamcrest.BaseMatcher<org.apache.lucene.util.BytesRef>
org.hamcrest.TypeSafeMatcher<org.apache.lucene.util.BytesRef>
org.elasticsearch.test.hamcrest.WellKnownBinaryBytesRefMatcher<G>
All Implemented Interfaces:
org.hamcrest.Matcher<org.apache.lucene.util.BytesRef>, org.hamcrest.SelfDescribing

public class WellKnownBinaryBytesRefMatcher<G extends org.elasticsearch.geometry.Geometry> extends org.hamcrest.TypeSafeMatcher<org.apache.lucene.util.BytesRef>
A wrapper for matching geometries encoded as WKB in a BytesRef.
  • Constructor Summary

    Constructors
    Constructor
    Description
    WellKnownBinaryBytesRefMatcher(org.hamcrest.Matcher<G> matcher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    describeMismatchSafely(org.apache.lucene.util.BytesRef bytesRef, org.hamcrest.Description description)
     
    void
    describeTo(org.hamcrest.Description description)
     
    static <G extends org.elasticsearch.geometry.Geometry>
    org.hamcrest.Matcher<org.apache.lucene.util.BytesRef>
    encodes(org.hamcrest.TypeSafeMatcher<G> matcher)
     
    boolean
    matchesSafely(org.apache.lucene.util.BytesRef bytesRef)
     

    Methods inherited from class org.hamcrest.TypeSafeMatcher

    describeMismatch, matches

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • WellKnownBinaryBytesRefMatcher

      public WellKnownBinaryBytesRefMatcher(org.hamcrest.Matcher<G> matcher)
  • Method Details

    • encodes

      public static <G extends org.elasticsearch.geometry.Geometry> org.hamcrest.Matcher<org.apache.lucene.util.BytesRef> encodes(org.hamcrest.TypeSafeMatcher<G> matcher)
    • matchesSafely

      public boolean matchesSafely(org.apache.lucene.util.BytesRef bytesRef)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<org.apache.lucene.util.BytesRef>
    • describeMismatchSafely

      public void describeMismatchSafely(org.apache.lucene.util.BytesRef bytesRef, org.hamcrest.Description description)
      Overrides:
      describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<org.apache.lucene.util.BytesRef>
    • describeTo

      public void describeTo(org.hamcrest.Description description)