예제 #1
0
        internal static Dictionary <IndexSlot, Value[]> ValuesByGroup()
        {
            Dictionary <IndexSlot, Value[]> values = new Dictionary <IndexSlot, Value[]>(typeof(IndexSlot));

            values[STRING]   = FusionIndexTestHelp.ValuesSupportedByString();
            values[NUMBER]   = FusionIndexTestHelp.ValuesSupportedByNumber();
            values[SPATIAL]  = FusionIndexTestHelp.ValuesSupportedBySpatial();
            values[TEMPORAL] = FusionIndexTestHelp.ValuesSupportedByTemporal();
            values[LUCENE]   = FusionIndexTestHelp.ValuesNotSupportedBySpecificIndex();
            return(values);
        }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void mustSelectSpatialForExactPredicateWithSpatialValue() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void MustSelectSpatialForExactPredicateWithSpatialValue()
        {
            // given
            assumeTrue(HasSpatialSupport());
            foreach (object value in FusionIndexTestHelp.ValuesSupportedBySpatial())
            {
                IndexQuery indexQuery = IndexQuery.exact(PROP_KEY, value);

                // then
                VerifyQueryWithCorrectReader(_readers[SPATIAL], indexQuery);
            }
        }