Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor due to core updates: Replace and modify classes and methods. #974

Merged
merged 1 commit into from
Aug 11, 2023

Commits on Aug 11, 2023

  1. Refactor due to core updates: Replace and modify classes and methods.

    Replacements:
    org.opensearch.common.io.stream.StreamInput => org.opensearch.core.common.io.stream.StreamInput
    org.opensearch.common.io.stream.StreamOutput => org.opensearch.core.common.io.stream.StreamOutput
    org.opensearch.common.io.stream.NamedWriteableRegistry => org.opensearch.core.common.io.stream.NamedWriteableRegistry
    org.opensearch.common.xcontent.XContentParserUtils => org.opensearch.core.xcontent.XContentParserUtils
    org.opensearch.rest.RestStatus => org.opensearch.core.rest.RestStatus
    org.opensearch.common.bytes.BytesReference => org.opensearch.core.common.bytes.BytesReference
    org.opensearch.common.io.stream.InputStreamStreamInput => org.opensearch.core.common.io.stream.InputStreamStreamInput
    org.opensearch.common.io.stream.OutputStreamStreamOutput => org.opensearch.core.common.io.stream.OutputStreamStreamOutput
    org.opensearch.common.component.LifecycleListener => org.opensearch.common.lifecycle.LifecycleListener
    org.opensearch.common.io.stream.Writeable => org.opensearch.core.common.io.stream.Writeable
    org.opensearch.common.io.stream.NotSerializableExceptionWrapper => org.opensearch.core.common.io.stream.NotSerializableExceptionWrapper
    org.opensearch.common.bytes.BytesArray => org.opensearch.core.common.bytes.BytesArray
    XContentType => MediaType
    org.opensearch.common.ParsingException => org.opensearch.core.common.ParsingException
    org.opensearch.core.common.Strings.EMPTY_ARRAY=> org.opensearch.core.common.Strings.EMPTY_ARRAY
    org.opensearch.common.transport.TransportAddress => org.opensearch.core.common.transport.TransportAddress
    org.opensearch.common.io.stream.NamedWriteableAwareStreamInput => org.opensearch.core.common.io.stream.NamedWriteableAwareStreamInput
    org.opensearch.common.unit.ByteSizeValue => org.opensearch.core.common.unit.ByteSizeValue
    org.opensearch.index.Index => org.opensearch.core.index.Index
    org.opensearch.index.shard.ShardId => org.opensearch.core.index.shard.ShardId
    org.opensearch.core.index.IndexNotFoundException => org.opensearch.index.IndexNotFoundException
    org.opensearch.core.index.IndexingPressure => org.opensearch.index.IndexingPressure
    com.carrotsearch.hppc.BitMixer => org.opensearch.common.util.BitMixer
    Strings.toString(XContentBuilder) => XContentBuilder.toString
    org.apache.http.entity.ContentType.APPLICATION_JSON => org.apache.hc.core5.http.ContentType.APPLICATION_JSON
    org.opensearch.action.support.nodes.BaseNodeRequest => org.opensearch.transport.TransportRequest
    org.opensearch.transport.TransportResponse => org.opensearch.core.transport.TransportResponse
    org.opensearch.core.transport.TransportResponseHandler => org.opensearch.transport.TransportResponseHandler
    org.opensearch.indices.breaker.NoneCircuitBreakerService => org.opensearch.core.indices.breaker.NoneCircuitBreakerService
    MediaType.fromMediaType => XContentType.fromMediaType
    org.opensearch.common.transport.BoundTransportAddress => org.opensearch.core.common.transport.BoundTransportAddress
    
    Modifications:
    - Updated `StringTerms` constructor. Removed `requiredSize` and `minDocCount`, added `TermsAggregator.BucketCountThresholds`. See details [here](opensearch-project/OpenSearch@15b7de0).
    
    Tests:
    - Completed successful `gradle build`.
    
    Signed-off-by: Kaituo Li <[email protected]>
    kaituo committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    6e58970 View commit details
    Browse the repository at this point in the history