Skip to content

Commit

Permalink
Structure houskeeping (Azure#309)
Browse files Browse the repository at this point in the history
* moved files to root to implementation folder
  • Loading branch information
itye-msft authored and navalev committed Dec 3, 2019
1 parent 5e4a128 commit d2c792b
Show file tree
Hide file tree
Showing 33 changed files with 23 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@

<!-- Suppress checks for AutoRest generated Search code -->
<!-- Hand-written classes should be specified here to be checked -->
<suppress checks="." files=".*[/\\]search[/\\]implementation[/\\]((?!(GeoPointDeserializer|ISO8601DateDeserializer|SerializationUtil)).*)"/>
<suppress checks="." files=".*[/\\]search[/\\]models[/\\]((?!(CoordinateSystem|GeoPoint|IndexBatch)).*)"/>
<suppress checks="." files=".*[/\\]search[/\\]implementation[/\\]((?!(GeoPointDeserializer|ISO8601DateDeserializer|SerializationUtil)).*)"/>
<suppress checks="." files=".*[/\\]search[/\\]models[/\\]((?!(CoordinateSystem|GeoPoint|IndexBatch|ValueFacetResult|RangeFacetResult)).*)"/>

<!-- Suppress external dependency check for jacksonwrapper overriding deserialize method -->
<suppress checks="com.azure.tools.checkstyle.checks.ExternalDependencyExposedCheck" files="com.azure.core.implementation.serializer.jsonwrapper.jacksonwrapper.JacksonDeserializer.java"/>
</suppressions>
</suppressions>
Original file line number Diff line number Diff line change
Expand Up @@ -632,15 +632,17 @@
<Match>
<And>
<Package name="~com\.azure\.search\.(implementation|models)(.*)"/>
<Not>
<Not>
<Or>
<!-- Hand-written classes should be specified here to be checked -->
<!-- Hand-written classes should be specified here to be checked -->
<Class name="com.azure.search.implementation.GeoPointDeserializer"/>
<Class name="com.azure.search.implementation.ISO8601DateDeserializer"/>
<Class name="com.azure.search.implementation.SerializationUtil"/>
<Class name="com.azure.search.models.CoordinateSystem"/>
<Class name="com.azure.search.models.GeoPoint"/>
<Class name="com.azure.search.models.IndexBatch"/>
<Class name="com.azure.search.models.ValueFacetResult"/>
<Class name="com.azure.search.models.RangeFacetResult"/>
</Or>
</Not>
</And>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.search.common;
package com.azure.search;

import com.azure.search.models.DataChangeDetectionPolicy;
import com.azure.search.models.DataContainer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.search.common;
package com.azure.search;

import com.azure.core.http.HttpPipelineCallContext;
import com.azure.core.http.HttpPipelineNextPolicy;
import com.azure.core.http.HttpResponse;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.search.ApiKeyCredentials;
import reactor.core.publisher.Mono;

import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.search.SearchServiceUrlParser.SearchServiceUrlParts;
import com.azure.search.common.SearchPagedResponse;
import com.azure.search.common.SuggestPagedResponse;
import com.azure.search.common.SuggestOptionsHandler;
import com.azure.search.implementation.SearchIndexRestClientBuilder;
import com.azure.search.implementation.SearchIndexRestClientImpl;
import com.azure.search.implementation.SerializationUtil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import com.azure.core.http.rest.PagedIterableBase;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.search.common.SearchPagedResponse;
import com.azure.search.common.SuggestPagedResponse;
import com.azure.search.models.AutocompleteItem;
import com.azure.search.models.AutocompleteOptions;
import com.azure.search.models.DocumentIndexResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.util.logging.ClientLogger;
import com.azure.search.common.SearchApiKeyPipelinePolicy;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.search.common;
package com.azure.search;

import com.azure.core.http.HttpHeaders;
import com.azure.core.http.rest.SimpleResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.util.logging.ClientLogger;
import com.azure.search.common.SearchApiKeyPipelinePolicy;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.search.common;
package com.azure.search;

import com.azure.search.models.SuggestOptions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.search.common;
package com.azure.search;

import com.azure.core.http.HttpHeaders;
import com.azure.core.http.rest.SimpleResponse;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.search;

import com.azure.search.models.FacetResult;
package com.azure.search.models;

public class RangeFacetResult {
private final Long count;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.search;

import com.azure.search.models.FacetResult;
package com.azure.search.models;

public class ValueFacetResult {
private final Long count;
Expand Down
1 change: 0 additions & 1 deletion sdk/search/azure-search/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@
opens com.azure.search.implementation to com.fasterxml.jackson.databind;

exports com.azure.search;
exports com.azure.search.common;
exports com.azure.search.models;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import com.azure.core.http.HttpResponse;
import com.azure.core.http.rest.PagedFluxBase;
import com.azure.core.util.Configuration;
import com.azure.search.common.SearchPagedResponse;
import com.azure.search.models.SearchOptions;
import com.azure.search.models.SearchResult;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import com.azure.core.http.rest.PagedResponse;
import com.azure.core.util.Configuration;
import com.azure.core.util.Context;
import com.azure.search.common.SearchPagedResponse;
import com.azure.search.common.SuggestPagedResponse;
import com.azure.search.models.AutocompleteItem;
import com.azure.search.models.AutocompleteMode;
import com.azure.search.models.AutocompleteOptions;
Expand All @@ -20,7 +18,6 @@
import com.azure.search.models.SearchResult;
import com.azure.search.models.SuggestOptions;
import com.azure.search.models.SuggestResult;
import com.microsoft.azure.management.network.model.HasBackendNics;

import java.util.Iterator;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import com.azure.core.implementation.serializer.jsonwrapper.api.JsonApi;
import com.azure.core.implementation.serializer.jsonwrapper.jacksonwrapper.JacksonDeserializer;
import com.azure.core.util.Configuration;
import com.azure.search.common.SearchPagedResponse;
import com.azure.search.models.SearchResult;
import models.Hotel;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import com.azure.core.http.rest.PagedFluxBase;
import com.azure.core.util.Configuration;
import com.azure.search.common.SearchPagedResponse;
import com.azure.search.models.FacetResult;
import com.azure.search.models.RequestOptions;
import com.azure.search.models.SearchOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import com.azure.core.http.rest.PagedIterableBase;
import com.azure.core.util.Configuration;
import com.azure.search.common.SearchPagedResponse;
import com.azure.search.models.RequestOptions;
import com.azure.search.models.SearchOptions;
import com.azure.search.models.SearchResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import com.azure.core.http.rest.PagedIterableBase;
import com.azure.core.util.Configuration;
import com.azure.search.common.SuggestPagedResponse;
import com.azure.search.models.SuggestOptions;
import com.azure.search.models.SuggestResult;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import com.azure.core.exception.HttpResponseException;
import com.azure.core.http.rest.PagedFluxBase;
import com.azure.search.common.SearchPagedResponse;
import com.azure.search.models.AccessCondition;
import com.azure.search.models.AnalyzeRequest;
import com.azure.search.models.Analyzer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

package com.azure.search;

import com.azure.search.common.DataSources;
import com.azure.search.models.DataChangeDetectionPolicy;
import com.azure.search.models.DataDeletionDetectionPolicy;
import com.azure.search.models.DataSource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
import com.azure.core.implementation.serializer.jsonwrapper.api.Config;
import com.azure.core.implementation.serializer.jsonwrapper.api.JsonApi;
import com.azure.core.implementation.serializer.jsonwrapper.jacksonwrapper.JacksonDeserializer;
import com.azure.search.common.SearchPagedResponse;
import com.azure.search.models.CoordinateSystem;
import com.azure.search.models.FacetResult;
import com.azure.search.models.SearchOptions;
import com.azure.search.models.QueryType;
import com.azure.search.models.RangeFacetResult;
import com.azure.search.models.RequestOptions;
import com.azure.search.models.SearchOptions;
import com.azure.search.models.SearchResult;
import com.azure.search.models.ValueFacetResult;
import com.azure.search.test.environment.models.Bucket;
import com.azure.search.test.environment.models.Hotel;
import com.azure.search.test.environment.models.NonNullableModel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.azure.core.exception.HttpResponseException;
import com.azure.core.exception.ResourceNotFoundException;
import com.azure.core.http.rest.PagedFluxBase;
import com.azure.search.common.SearchPagedResponse;
import com.azure.search.models.GeoPoint;
import com.azure.search.models.SearchOptions;
import com.azure.search.models.SearchResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import com.azure.core.implementation.serializer.jsonwrapper.jacksonwrapper.JacksonDeserializer;
import com.azure.core.test.TestBase;
import com.azure.core.util.Configuration;
import com.azure.search.common.DataSources;
import com.azure.search.models.AnalyzerName;
import com.azure.search.models.CorsOptions;
import com.azure.search.models.DataChangeDetectionPolicy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
import com.azure.core.implementation.serializer.jsonwrapper.api.Config;
import com.azure.core.implementation.serializer.jsonwrapper.api.JsonApi;
import com.azure.core.implementation.serializer.jsonwrapper.jacksonwrapper.JacksonDeserializer;
import com.azure.search.common.SearchPagedResponse;
import com.azure.search.models.CoordinateSystem;
import com.azure.search.models.FacetResult;
import com.azure.search.models.QueryType;
import com.azure.search.models.RangeFacetResult;
import com.azure.search.models.RequestOptions;
import com.azure.search.models.SearchOptions;
import com.azure.search.models.SearchResult;
import com.azure.search.models.ValueFacetResult;
import com.azure.search.test.environment.models.Bucket;
import com.azure.search.test.environment.models.Hotel;
import com.azure.search.test.environment.models.NonNullableModel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
import com.azure.search.models.FacetResult;
import com.azure.search.models.Index;
import com.azure.search.models.QueryType;
import com.azure.search.models.RangeFacetResult;
import com.azure.search.models.RequestOptions;
import com.azure.search.models.SearchOptions;
import com.azure.search.models.SearchResult;
import com.azure.search.models.SynonymMap;
import com.azure.search.models.ValueFacetResult;
import org.junit.Assert;
import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
package com.azure.search;

import com.azure.core.http.rest.PagedFluxBase;
import com.azure.search.common.SuggestPagedResponse;
import com.azure.search.models.SuggestOptions;
import com.azure.search.models.SuggestResult;
import com.azure.search.test.environment.models.Author;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

package com.azure.search;

import com.azure.search.common.SuggestOptionsHandler;
import com.azure.search.models.SuggestOptions;
import org.junit.Assert;
import org.junit.Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.azure.core.exception.HttpResponseException;
import com.azure.core.http.rest.PagedIterableBase;
import com.azure.core.http.rest.PagedResponse;
import com.azure.search.common.SuggestPagedResponse;
import com.azure.search.models.SuggestOptions;
import com.azure.search.models.SuggestResult;
import com.azure.search.test.environment.models.Author;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import com.azure.core.implementation.serializer.jsonwrapper.JsonWrapper;
import com.azure.core.implementation.serializer.jsonwrapper.api.JsonApi;
import com.azure.core.implementation.serializer.jsonwrapper.jacksonwrapper.JacksonDeserializer;
import com.azure.search.common.SuggestPagedResponse;
import com.azure.search.models.SuggestResult;
import com.azure.search.test.environment.models.Hotel;
import org.junit.Assert;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package com.azure.search.models;

import com.azure.core.http.rest.PagedIterableBase;
import com.azure.search.common.SearchPagedResponse;
import com.azure.search.SearchPagedResponse;

import com.azure.search.SearchIndexClient;
import com.azure.search.implementation.SerializationUtil;
Expand Down

0 comments on commit d2c792b

Please sign in to comment.