@Test public void testIndexSeekRangeWithExistsByString() throws Exception { testIndexSeekRangeWithExists( "Anabelle", "Anna", "Bob", "Harriet", "William" ); }
@Test public void testIndexSeekRangeWithExistsByNumber() throws Exception { testIndexSeekRangeWithExists( -5, 0, 5.5, 10.0, 100.0 ); }
@Test public void testIndexSeekRangeWithExistsByNumberArray() throws Exception { testIndexSeekRangeWithExists( new long[]{303, 303}, new long[]{303, 404}, new long[]{600, 303}, new long[]{600, 404}, new long[]{900} ); }
@Test public void testIndexSeekRangeWithExistsByStringArray() throws Exception { testIndexSeekRangeWithExists( new String[]{"Anabelle", "Anabelle"}, new String[]{"Anabelle", "Anablo"}, new String[]{"Anna", "Anabelle"}, new String[]{"Anna", "Anablo"}, new String[]{"Bob"} ); }
@Test public void testIndexSeekRangeWithExistsByBooleanArray() throws Exception { testIndexSeekRangeWithExists( new boolean[]{false, false}, new boolean[]{false, true}, new boolean[]{true, false}, new boolean[]{true, true}, new boolean[]{true, true, false} ); }
@Test public void testIndexSeekRangeWithExistsByTemporal() throws Exception { DateTimeValue d1 = datetime( 9999, 100, ZoneId.of( "+18:00" ) ); DateTimeValue d2 = datetime( 10000, 100, ZoneId.of( "UTC" ) ); DateTimeValue d3 = datetime( 10000, 100, ZoneId.of( "+01:00" ) ); DateTimeValue d4 = datetime( 10000, 100, ZoneId.of( "Europe/Stockholm" ) ); DateTimeValue d5 = datetime( 10000, 100, ZoneId.of( "+03:00" ) ); testIndexSeekRangeWithExists( d1, d2, d3, d4, d5 ); }
private void testIndexSeekRangeWithExists( Object obj1, Object obj2, Object obj3, Object obj4, Object obj5 ) throws Exception { testIndexSeekRangeWithExists( Values.of( obj1 ), Values.of( obj2 ), Values.of( obj3 ), Values.of( obj4 ), Values.of( obj5 ) ); }
@Test public void testIndexSeekRangeWithExistsByTemporalArray() throws Exception { testIndexSeekRangeWithExists( dateArray( 303, 303 ), dateArray( 303, 404 ), dateArray( 404, 303 ), dateArray( 404, 404 ), dateArray( 404, 404, 303 ) ); }
@Test public void testIndexSeekRangeWithExistsBySpatial() throws Exception { testIndexSeekRangeWithExists( pointValue( Cartesian, 0D, 0D ), pointValue( Cartesian, 1D, 1D ), pointValue( Cartesian, 2D, 2D ), pointValue( Cartesian, 3D, 3D ), pointValue( Cartesian, 4D, 4D ) ); }
@Test public void testIndexSeekRangeWithExistsBySpatialArray() throws Exception { testIndexSeekRangeWithExists( pointArray( new PointValue[] {pointValue( Cartesian, 0D, 0D ), pointValue( Cartesian, 0D, 1D )} ), pointArray( new PointValue[] {pointValue( Cartesian, 10D, 1D ), pointValue( Cartesian, 10D, 2D )} ), pointArray( new PointValue[] {pointValue( Cartesian, 20D, 2D ), pointValue( Cartesian, 20D, 3D )} ), pointArray( new PointValue[] {pointValue( Cartesian, 30D, 3D ), pointValue( Cartesian, 30D, 4D )} ), pointArray( new PointValue[] {pointValue( Cartesian, 40D, 4D ), pointValue( Cartesian, 40D, 5D )} ) ); }