From 6e801ca3203a33a28bd16db78f8fca98c23db6fe Mon Sep 17 00:00:00 2001 From: Anton Persson Date: Fri, 28 Sep 2018 14:02:22 +0200 Subject: [PATCH] Variable name change layoutUtil -> valueCreatorUtil --- .../schema/NativeIndexAccessorTests.java | 76 +++++++++---------- .../schema/NativeIndexPopulatorTests.java | 28 +++---- .../index/schema/NativeIndexTestUtil.java | 10 +-- .../schema/SpatialIndexAccessorTest.java | 6 +- 4 files changed, 60 insertions(+), 60 deletions(-) diff --git a/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/NativeIndexAccessorTests.java b/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/NativeIndexAccessorTests.java index 82ca14287a7d..8a133b72aedf 100644 --- a/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/NativeIndexAccessorTests.java +++ b/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/NativeIndexAccessorTests.java @@ -157,7 +157,7 @@ public void shouldIndexChange() throws Exception // given IndexEntryUpdate[] updates = someUpdatesSingleType(); processAll( updates ); - Iterator> generator = filter( skipExisting( updates ), layoutUtil.randomUpdateGenerator( random ) ); + Iterator> generator = filter( skipExisting( updates ), valueCreatorUtil.randomUpdateGenerator( random ) ); for ( int i = 0; i < updates.length; i++ ) { @@ -200,7 +200,7 @@ public void shouldHandleRandomUpdates() throws Exception { // given Set> expectedData = new HashSet<>(); - Iterator> newDataGenerator = layoutUtil.randomUpdateGenerator( random ); + Iterator> newDataGenerator = valueCreatorUtil.randomUpdateGenerator( random ); // when int rounds = 50; @@ -229,8 +229,8 @@ public void shouldReturnZeroCountForEmptyIndex() try ( IndexReader reader = accessor.newReader() ) { // when - IndexEntryUpdate update = layoutUtil.randomUpdateGenerator( random ).next(); - long count = reader.countIndexedNodes( 123, layoutUtil.indexDescriptor.properties(), update.values()[0] ); + IndexEntryUpdate update = valueCreatorUtil.randomUpdateGenerator( random ).next(); + long count = reader.countIndexedNodes( 123, valueCreatorUtil.indexDescriptor.properties(), update.values()[0] ); // then assertEquals( 0, count ); @@ -249,15 +249,15 @@ public void shouldReturnCountOneForExistingData() throws Exception { for ( IndexEntryUpdate update : updates ) { - long count = reader.countIndexedNodes( update.getEntityId(), layoutUtil.indexDescriptor.properties(), update.values() ); + long count = reader.countIndexedNodes( update.getEntityId(), valueCreatorUtil.indexDescriptor.properties(), update.values() ); // then assertEquals( 1, count ); } // and when - Iterator> generator = filter( skipExisting( updates ), layoutUtil.randomUpdateGenerator( random ) ); - long count = reader.countIndexedNodes( 123, layoutUtil.indexDescriptor.properties(), generator.next().values()[0] ); + Iterator> generator = filter( skipExisting( updates ), valueCreatorUtil.randomUpdateGenerator( random ) ); + long count = reader.countIndexedNodes( 123, valueCreatorUtil.indexDescriptor.properties(), generator.next().values()[0] ); // then assertEquals( 0, count ); @@ -276,7 +276,7 @@ public void shouldReturnCountZeroForMismatchingData() throws Exception for ( IndexEntryUpdate update : updates ) { - int[] propKeys = layoutUtil.indexDescriptor.properties(); + int[] propKeys = valueCreatorUtil.indexDescriptor.properties(); long countWithMismatchingData = reader.countIndexedNodes( update.getEntityId() + 1, propKeys, update.values() ); long countWithNonExistentEntityId = reader.countIndexedNodes( NON_EXISTENT_ENTITY_ID, propKeys, update.values() ); long countWithNonExistentValue = reader.countIndexedNodes( update.getEntityId(), propKeys, generateUniqueValue( updates ) ); @@ -352,12 +352,12 @@ public void shouldReturnMatchingEntriesForRangePredicateWithInclusiveStartAndExc // given IndexEntryUpdate[] updates = someUpdatesSingleTypeNoDuplicates( supportedTypesExcludingNonOrderable() ); processAll( updates ); - layoutUtil.sort( updates ); + valueCreatorUtil.sort( updates ); // when IndexReader reader = accessor.newReader(); LongIterator result = query( reader, - layoutUtil.rangeQuery( valueOf( updates[0] ), true, valueOf( updates[updates.length - 1] ), false ) ); + valueCreatorUtil.rangeQuery( valueOf( updates[0] ), true, valueOf( updates[updates.length - 1] ), false ) ); assertEntityIdHits( extractEntityIds( Arrays.copyOf( updates, updates.length - 1 ), alwaysTrue() ), result ); } @@ -373,12 +373,12 @@ void shouldReturnMatchingEntriesForRangePredicateWithInclusiveStartAndInclusiveE throws IndexEntryConflictException, IndexNotApplicableKernelException { processAll( updates ); - layoutUtil.sort( updates ); + valueCreatorUtil.sort( updates ); // when IndexReader reader = accessor.newReader(); LongIterator result = query( reader, - layoutUtil.rangeQuery( valueOf( updates[0] ), true, valueOf( updates[updates.length - 1] ), true ) ); + valueCreatorUtil.rangeQuery( valueOf( updates[0] ), true, valueOf( updates[updates.length - 1] ), true ) ); assertEntityIdHits( extractEntityIds( updates, alwaysTrue() ), result ); } @@ -388,12 +388,12 @@ public void shouldReturnMatchingEntriesForRangePredicateWithExclusiveStartAndExc // given IndexEntryUpdate[] updates = someUpdatesSingleTypeNoDuplicates( supportedTypesExcludingNonOrderable() ); processAll( updates ); - layoutUtil.sort( updates ); + valueCreatorUtil.sort( updates ); // when IndexReader reader = accessor.newReader(); LongIterator result = query( reader, - layoutUtil.rangeQuery( valueOf( updates[0] ), false, valueOf( updates[updates.length - 1] ), false ) ); + valueCreatorUtil.rangeQuery( valueOf( updates[0] ), false, valueOf( updates[updates.length - 1] ), false ) ); assertEntityIdHits( extractEntityIds( Arrays.copyOfRange( updates, 1, updates.length - 1 ), alwaysTrue() ), result ); } @@ -403,12 +403,12 @@ public void shouldReturnMatchingEntriesForRangePredicateWithExclusiveStartAndInc // given IndexEntryUpdate[] updates = someUpdatesSingleTypeNoDuplicates( supportedTypesExcludingNonOrderable() ); processAll( updates ); - layoutUtil.sort( updates ); + valueCreatorUtil.sort( updates ); // when IndexReader reader = accessor.newReader(); LongIterator result = query( reader, - layoutUtil.rangeQuery( valueOf( updates[0] ), false, valueOf( updates[updates.length - 1] ), true ) ); + valueCreatorUtil.rangeQuery( valueOf( updates[0] ), false, valueOf( updates[updates.length - 1] ), true ) ); assertEntityIdHits( extractEntityIds( Arrays.copyOfRange( updates, 1, updates.length ), alwaysTrue() ), result ); } @@ -417,13 +417,13 @@ public void shouldReturnNoEntriesForRangePredicateOutsideAnyMatch() throws Excep { // given IndexEntryUpdate[] updates = someUpdatesSingleTypeNoDuplicates( supportedTypesExcludingNonOrderable() ); - layoutUtil.sort( updates ); + valueCreatorUtil.sort( updates ); processAll( updates[0], updates[1], updates[updates.length - 1], updates[updates.length - 2] ); // when IndexReader reader = accessor.newReader(); LongIterator result = query( reader, - layoutUtil.rangeQuery( valueOf( updates[2] ), true, valueOf( updates[updates.length - 3] ), true ) ); + valueCreatorUtil.rangeQuery( valueOf( updates[2] ), true, valueOf( updates[updates.length - 3] ), true ) ); assertEntityIdHits( EMPTY_LONG_ARRAY, result ); } @@ -438,13 +438,13 @@ public void mustHandleNestedQueries() throws Exception void mustHandleNestedQueries( IndexEntryUpdate[] updates ) throws IndexEntryConflictException, IndexNotApplicableKernelException { processAll( updates ); - layoutUtil.sort( updates ); + valueCreatorUtil.sort( updates ); // when IndexReader reader = accessor.newReader(); - IndexQuery outerQuery = layoutUtil.rangeQuery( valueOf( updates[2] ), true, valueOf( updates[3] ), true ); - IndexQuery innerQuery = layoutUtil.rangeQuery( valueOf( updates[0] ), true, valueOf( updates[1] ), true ); + IndexQuery outerQuery = valueCreatorUtil.rangeQuery( valueOf( updates[2] ), true, valueOf( updates[3] ), true ); + IndexQuery innerQuery = valueCreatorUtil.rangeQuery( valueOf( updates[0] ), true, valueOf( updates[1] ), true ); long[] expectedOuter = new long[]{entityIdOf( updates[2] ), entityIdOf( updates[3] )}; long[] expectedInner = new long[]{entityIdOf( updates[0] ), entityIdOf( updates[1] )}; @@ -472,14 +472,14 @@ void mustHandleMultipleNestedQueries( IndexEntryUpdate[] update throws IndexEntryConflictException, IndexNotApplicableKernelException { processAll( updates ); - layoutUtil.sort( updates ); + valueCreatorUtil.sort( updates ); // when IndexReader reader = accessor.newReader(); - IndexQuery query1 = layoutUtil.rangeQuery( valueOf( updates[4] ), true, valueOf( updates[5] ), true ); - IndexQuery query2 = layoutUtil.rangeQuery( valueOf( updates[2] ), true, valueOf( updates[3] ), true ); - IndexQuery query3 = layoutUtil.rangeQuery( valueOf( updates[0] ), true, valueOf( updates[1] ), true ); + IndexQuery query1 = valueCreatorUtil.rangeQuery( valueOf( updates[4] ), true, valueOf( updates[5] ), true ); + IndexQuery query2 = valueCreatorUtil.rangeQuery( valueOf( updates[2] ), true, valueOf( updates[3] ), true ); + IndexQuery query3 = valueCreatorUtil.rangeQuery( valueOf( updates[0] ), true, valueOf( updates[1] ), true ); long[] expected1 = new long[]{entityIdOf( updates[4] ), entityIdOf( updates[5] )}; long[] expected2 = new long[]{entityIdOf( updates[2] ), entityIdOf( updates[3] )}; @@ -710,13 +710,13 @@ public void shouldNotSeeFilteredEntries() throws Exception // given IndexEntryUpdate[] updates = someUpdatesSingleTypeNoDuplicates( supportedTypesExcludingNonOrderable() ); processAll( updates ); - layoutUtil.sort( updates ); + valueCreatorUtil.sort( updates ); IndexReader reader = accessor.newReader(); // when NodeValueIterator iter = new NodeValueIterator(); IndexQuery.ExactPredicate filter = IndexQuery.exact( 0, valueOf( updates[1]) ); - IndexQuery rangeQuery = layoutUtil.rangeQuery( valueOf( updates[0] ), true, valueOf( updates[2] ), true ); + IndexQuery rangeQuery = valueCreatorUtil.rangeQuery( valueOf( updates[0] ), true, valueOf( updates[2] ), true ); IndexProgressor.NodeValueClient filterClient = filterClient( iter, filter ); reader.query( filterClient, IndexOrder.NONE, false, rangeQuery ); @@ -733,7 +733,7 @@ public void shouldNotSeeFilteredEntries() throws Exception // // given // IndexEntryUpdate[] someUpdates = someUpdates(); // processAll( someUpdates ); -// Value[] expectedValues = layoutUtil.extractValuesFromUpdates( someUpdates ); +// Value[] expectedValues = valueCreatorUtil.extractValuesFromUpdates( someUpdates ); // // // when // IndexReader reader = accessor.newReader(); @@ -788,7 +788,7 @@ public void shouldNotSeeFilteredEntries() throws Exception private Value generateUniqueValue( IndexEntryUpdate[] updates ) { - return filter( skipExisting( updates ), layoutUtil.randomUpdateGenerator( random ) ).next().values()[0]; + return filter( skipExisting( updates ), valueCreatorUtil.randomUpdateGenerator( random ) ).next().values()[0]; } private static Predicate> skipExisting( IndexEntryUpdate[] existing ) @@ -896,14 +896,14 @@ private void applyUpdatesToExpectedData( Set> switch ( update.updateMode() ) { case ADDED: - addition = layoutUtil.add( update.getEntityId(), update.values()[0] ); + addition = valueCreatorUtil.add( update.getEntityId(), update.values()[0] ); break; case CHANGED: - addition = layoutUtil.add( update.getEntityId(), update.values()[0] ); - removal = layoutUtil.add( update.getEntityId(), update.beforeValues()[0] ); + addition = valueCreatorUtil.add( update.getEntityId(), update.values()[0] ); + removal = valueCreatorUtil.add( update.getEntityId(), update.beforeValues()[0] ); break; case REMOVED: - removal = layoutUtil.add( update.getEntityId(), update.values()[0] ); + removal = valueCreatorUtil.add( update.getEntityId(), update.values()[0] ); break; default: throw new IllegalArgumentException( update.updateMode().name() ); @@ -995,13 +995,13 @@ private IndexEntryUpdate simpleUpdate() private IndexEntryUpdate[] someUpdatesSingleType() { - RandomValues.Type type = randomValues.among( layoutUtil.supportedTypes() ); + RandomValues.Type type = randomValues.among( valueCreatorUtil.supportedTypes() ); return someUpdatesOfTypes( true, type ); } private IndexEntryUpdate[] someUpdatesSingleTypeNoDuplicates() { - return someUpdatesSingleTypeNoDuplicates( layoutUtil.supportedTypes() ); + return someUpdatesSingleTypeNoDuplicates( valueCreatorUtil.supportedTypes() ); } private IndexEntryUpdate[] someUpdatesSingleTypeNoDuplicates( RandomValues.Type[] types ) @@ -1018,7 +1018,7 @@ private IndexEntryUpdate[] someUpdatesSingleTypeNoDuplicates( R IndexEntryUpdate[] someUpdates() { - return someUpdatesOfTypes( true, layoutUtil.supportedTypes() ); + return someUpdatesOfTypes( true, valueCreatorUtil.supportedTypes() ); } private IndexEntryUpdate[] someUpdatesOfTypes( boolean allowDuplicates, RandomValues.Type... types ) @@ -1037,12 +1037,12 @@ private IndexEntryUpdate[] someUpdatesOfTypes( boolean allowDup values[i++] = value; } } - return layoutUtil.generateAddUpdatesFor( values ); + return valueCreatorUtil.generateAddUpdatesFor( values ); } private RandomValues.Type[] supportedTypesExcludingNonOrderable() { - return RandomValues.excluding( layoutUtil.supportedTypes(), + return RandomValues.excluding( valueCreatorUtil.supportedTypes(), t -> t.valueGroup == ValueGroup.GEOMETRY || t.valueGroup == ValueGroup.GEOMETRY_ARRAY || t == RandomValues.Type.STRING || diff --git a/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/NativeIndexPopulatorTests.java b/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/NativeIndexPopulatorTests.java index 194b2bdf234b..f178707139f0 100644 --- a/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/NativeIndexPopulatorTests.java +++ b/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/NativeIndexPopulatorTests.java @@ -160,7 +160,7 @@ public void addShouldApplyAllUpdatesOnce() throws Exception // given populator.create(); @SuppressWarnings( "unchecked" ) - IndexEntryUpdate[] updates = layoutUtil.someUpdates(); + IndexEntryUpdate[] updates = valueCreatorUtil.someUpdates(); // when populator.add( Arrays.asList( updates ) ); @@ -175,7 +175,7 @@ public void updaterShouldApplyUpdates() throws Exception { // given populator.create(); - IndexEntryUpdate[] updates = layoutUtil.someUpdates(); + IndexEntryUpdate[] updates = valueCreatorUtil.someUpdates(); try ( IndexUpdater updater = populator.newPopulatingUpdater( null_property_accessor ) ) { // when @@ -203,7 +203,7 @@ public void updaterMustThrowIfProcessAfterClose() throws Exception // then try { - updater.process( layoutUtil.add( 1, Values.of( Long.MAX_VALUE ) ) ); + updater.process( valueCreatorUtil.add( 1, Values.of( Long.MAX_VALUE ) ) ); fail( "Expected process to throw on closed updater" ); } catch ( IllegalStateException e ) @@ -219,7 +219,7 @@ public void shouldApplyInterleavedUpdatesFromAddAndUpdater() throws Exception // given populator.create(); @SuppressWarnings( "unchecked" ) - IndexEntryUpdate[] updates = layoutUtil.someUpdates(); + IndexEntryUpdate[] updates = valueCreatorUtil.someUpdates(); // when applyInterleaved( updates, populator ); @@ -370,7 +370,7 @@ public void shouldApplyLargeAmountOfInterleavedRandomUpdates() throws Exception populator.create(); random.reset(); Random updaterRandom = new Random( random.seed() ); - Iterator> updates = layoutUtil.randomUpdateGenerator( random ); + Iterator> updates = valueCreatorUtil.randomUpdateGenerator( random ); // when int count = interleaveLargeAmountOfUpdates( updaterRandom, updates ); @@ -378,7 +378,7 @@ public void shouldApplyLargeAmountOfInterleavedRandomUpdates() throws Exception // then populator.close( true ); random.reset(); - verifyUpdates( layoutUtil.randomUpdateGenerator( random ), count ); + verifyUpdates( valueCreatorUtil.randomUpdateGenerator( random ), count ); } @Test @@ -491,7 +491,7 @@ public void addShouldThrowOnDuplicateValues() { // given populator.create(); - IndexEntryUpdate[] updates = layoutUtil.someUpdatesWithDuplicateValues(); + IndexEntryUpdate[] updates = valueCreatorUtil.someUpdatesWithDuplicateValues(); // when try @@ -514,7 +514,7 @@ public void updaterShouldThrowOnDuplicateValues() throws Exception { // given populator.create(); - IndexEntryUpdate[] updates = layoutUtil.someUpdatesWithDuplicateValues(); + IndexEntryUpdate[] updates = valueCreatorUtil.someUpdatesWithDuplicateValues(); IndexUpdater updater = populator.newPopulatingUpdater( null_property_accessor ); // when @@ -543,7 +543,7 @@ public void shouldSampleUpdates() throws Exception { // GIVEN populator.create(); - IndexEntryUpdate[] updates = layoutUtil.someUpdates(); + IndexEntryUpdate[] updates = valueCreatorUtil.someUpdates(); // WHEN populator.add( asList( updates ) ); @@ -568,7 +568,7 @@ public void addShouldApplyDuplicateValues() throws Exception { // given populator.create(); - IndexEntryUpdate[] updates = layoutUtil.someUpdatesWithDuplicateValues(); + IndexEntryUpdate[] updates = valueCreatorUtil.someUpdatesWithDuplicateValues(); // when populator.add( Arrays.asList( updates ) ); @@ -583,7 +583,7 @@ public void updaterShouldApplyDuplicateValues() throws Exception { // given populator.create(); - IndexEntryUpdate[] updates = layoutUtil.someUpdatesWithDuplicateValues(); + IndexEntryUpdate[] updates = valueCreatorUtil.someUpdatesWithDuplicateValues(); try ( IndexUpdater updater = populator.newPopulatingUpdater( null_property_accessor ) ) { // when @@ -603,9 +603,9 @@ public void shouldSampleUpdatesIfConfiguredForOnlineSampling() throws Exception { // GIVEN populator.create(); - IndexEntryUpdate[] scanUpdates = layoutUtil.someUpdates(); + IndexEntryUpdate[] scanUpdates = valueCreatorUtil.someUpdates(); populator.add( Arrays.asList( scanUpdates ) ); - Iterator> generator = layoutUtil.randomUpdateGenerator( random ); + Iterator> generator = valueCreatorUtil.randomUpdateGenerator( random ); Object[] updates = new Object[5]; updates[0] = generator.next().values()[0].asObject(); updates[1] = generator.next().values()[0].asObject(); @@ -617,7 +617,7 @@ public void shouldSampleUpdatesIfConfiguredForOnlineSampling() throws Exception long nodeId = 1000; for ( Object value : updates ) { - IndexEntryUpdate update = layoutUtil.add( nodeId++, Values.of( value ) ); + IndexEntryUpdate update = valueCreatorUtil.add( nodeId++, Values.of( value ) ); updater.process( update ); } } diff --git a/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/NativeIndexTestUtil.java b/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/NativeIndexTestUtil.java index dabeee3b8549..af1043590d27 100644 --- a/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/NativeIndexTestUtil.java +++ b/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/NativeIndexTestUtil.java @@ -70,7 +70,7 @@ public abstract class NativeIndexTestUtil,VALUE public final RuleChain rules = outerRule( fs ).around( directory ).around( pageCacheRule ).around( random ); StoreIndexDescriptor indexDescriptor; - ValueCreatorUtil layoutUtil; + ValueCreatorUtil valueCreatorUtil; IndexLayout layout; private IndexDirectoryStructure indexDirectoryStructure; private File indexFile; @@ -81,8 +81,8 @@ public abstract class NativeIndexTestUtil,VALUE @Before public void setup() { - layoutUtil = createValueCreatorUtil(); - indexDescriptor = layoutUtil.indexDescriptor(); + valueCreatorUtil = createValueCreatorUtil(); + indexDescriptor = valueCreatorUtil.indexDescriptor(); layout = createLayout(); indexFile = directory.file( "index" ); pageCache = pageCacheRule.getPageCache( fs ); @@ -100,7 +100,7 @@ public File getIndexFile() private void copyValue( VALUE value, VALUE intoValue ) { - layoutUtil.copyValue( value, intoValue ); + valueCreatorUtil.copyValue( value, intoValue ); } void verifyUpdates( IndexEntryUpdate[] updates ) @@ -122,7 +122,7 @@ void verifyUpdates( IndexEntryUpdate[] updates ) int keyCompare = layout.compare( h1.key(), h2.key() ); if ( keyCompare == 0 ) { - return layoutUtil.compareIndexedPropertyValue( h1.key(), h2.key() ); + return valueCreatorUtil.compareIndexedPropertyValue( h1.key(), h2.key() ); } else { diff --git a/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/SpatialIndexAccessorTest.java b/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/SpatialIndexAccessorTest.java index dead0e73d0d1..3fab29aea7c0 100644 --- a/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/SpatialIndexAccessorTest.java +++ b/community/kernel/src/test/java/org/neo4j/kernel/impl/index/schema/SpatialIndexAccessorTest.java @@ -82,7 +82,7 @@ public void shouldNotSeeFilteredEntries() public void shouldReturnMatchingEntriesForRangePredicateWithInclusiveStartAndInclusiveEnd() throws Exception { // given - IndexEntryUpdate[] updates = layoutUtil.generateAddUpdatesFor( new Value[]{ + IndexEntryUpdate[] updates = valueCreatorUtil.generateAddUpdatesFor( new Value[]{ Values.pointValue( WGS84, -90, -90 ), Values.pointValue( WGS84, -70, -70 ), Values.pointValue( WGS84, -50, -50 ), @@ -117,7 +117,7 @@ public void mustHandleNestedQueries() throws IndexEntryConflictException, IndexN { // It ok to not use random values here because we are only testing nesting of queries //noinspection unchecked - IndexEntryUpdate[] updates = layoutUtil.generateAddUpdatesFor( new Value[]{ + IndexEntryUpdate[] updates = valueCreatorUtil.generateAddUpdatesFor( new Value[]{ Values.pointValue( WGS84, -90, -90 ), Values.pointValue( WGS84, -70, -70 ), Values.pointValue( WGS84, -50, -50 ), @@ -134,7 +134,7 @@ public void mustHandleMultipleNestedQueries() throws Exception { // It ok to not use random values here because we are only testing nesting of queries //noinspection unchecked - IndexEntryUpdate[] updates = layoutUtil.generateAddUpdatesFor( new Value[]{ + IndexEntryUpdate[] updates = valueCreatorUtil.generateAddUpdatesFor( new Value[]{ Values.pointValue( WGS84, -90, -90 ), Values.pointValue( WGS84, -70, -70 ), Values.pointValue( WGS84, -50, -50 ),