All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atlan.model.search.AggregationHitsResult Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
// Generated by delombok at Wed Oct 16 22:16:04 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
   Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.model.search;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;

/**
 * Captures the results from a bucket aggregation.
 */
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AggregationHitsResult.AggregationHitsResultBuilder.class)
public class AggregationHitsResult extends AggregationResult {
    private static final long serialVersionUID = 2L;
    /**
     * Details of the hits requested.
     */
    Hits hits;


    public static final class Hits {
        Stats total;
        @JsonProperty("max_score")
        Double maxScore;
        List
hits; @java.lang.SuppressWarnings("all") @lombok.Generated public Stats getTotal() { return this.total; } @java.lang.SuppressWarnings("all") @lombok.Generated public Double getMaxScore() { return this.maxScore; } @java.lang.SuppressWarnings("all") @lombok.Generated public List
getHits() { return this.hits; } } public static final class Stats { /** * Number of search results that matched the hit value. */ Long value; /** * Comparison operation used to determine whether the values match. */ String relation; /** * Number of search results that matched the hit value. */ @java.lang.SuppressWarnings("all") @lombok.Generated public Long getValue() { return this.value; } /** * Comparison operation used to determine whether the values match. */ @java.lang.SuppressWarnings("all") @lombok.Generated public String getRelation() { return this.relation; } } public static final class Details { /** Elastic index against which the hits were found. */ @JsonProperty("_index") String index; /** TBC */ @JsonProperty("_type") String type; /** TBC */ @JsonProperty("_id") String id; /** TBC */ @JsonProperty("_score") String score; /** Actual values for the mapped field(s). */ @JsonProperty("_source") Map source; @java.lang.SuppressWarnings("all") @lombok.Generated public String getIndex() { return this.index; } @java.lang.SuppressWarnings("all") @lombok.Generated public String getType() { return this.type; } @java.lang.SuppressWarnings("all") @lombok.Generated public String getId() { return this.id; } @java.lang.SuppressWarnings("all") @lombok.Generated public String getScore() { return this.score; } @java.lang.SuppressWarnings("all") @lombok.Generated public Map getSource() { return this.source; } } @java.lang.SuppressWarnings("all") @lombok.Generated AggregationHitsResult(final Hits hits) { this.hits = hits; } @java.lang.SuppressWarnings("all") @lombok.Generated @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build") public static class AggregationHitsResultBuilder { @java.lang.SuppressWarnings("all") @lombok.Generated private Hits hits; @java.lang.SuppressWarnings("all") @lombok.Generated AggregationHitsResultBuilder() { } /** * Details of the hits requested. * @return {@code this}. */ @java.lang.SuppressWarnings("all") @lombok.Generated public AggregationHitsResult.AggregationHitsResultBuilder hits(final Hits hits) { this.hits = hits; return this; } @java.lang.SuppressWarnings("all") @lombok.Generated public AggregationHitsResult build() { return new AggregationHitsResult(this.hits); } @java.lang.Override @java.lang.SuppressWarnings("all") @lombok.Generated public java.lang.String toString() { return "AggregationHitsResult.AggregationHitsResultBuilder(hits=" + this.hits + ")"; } } @java.lang.SuppressWarnings("all") @lombok.Generated public static AggregationHitsResult.AggregationHitsResultBuilder builder() { return new AggregationHitsResult.AggregationHitsResultBuilder(); } /** * Details of the hits requested. */ @java.lang.SuppressWarnings("all") @lombok.Generated public Hits getHits() { return this.hits; } @java.lang.Override @java.lang.SuppressWarnings("all") @lombok.Generated public boolean equals(final java.lang.Object o) { if (o == this) return true; if (!(o instanceof AggregationHitsResult)) return false; final AggregationHitsResult other = (AggregationHitsResult) o; if (!other.canEqual((java.lang.Object) this)) return false; final java.lang.Object this$hits = this.getHits(); final java.lang.Object other$hits = other.getHits(); if (this$hits == null ? other$hits != null : !this$hits.equals(other$hits)) return false; return true; } @java.lang.SuppressWarnings("all") @lombok.Generated protected boolean canEqual(final java.lang.Object other) { return other instanceof AggregationHitsResult; } @java.lang.Override @java.lang.SuppressWarnings("all") @lombok.Generated public int hashCode() { final int PRIME = 59; int result = 1; final java.lang.Object $hits = this.getHits(); result = result * PRIME + ($hits == null ? 43 : $hits.hashCode()); return result; } @java.lang.Override @java.lang.SuppressWarnings("all") @lombok.Generated public java.lang.String toString() { return "AggregationHitsResult(super=" + super.toString() + ", hits=" + this.getHits() + ")"; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy