Skip to content

Commit

Permalink
fix annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthakaggarwal97 committed Jul 5, 2024
1 parent c6a78b5 commit 114a3ee
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/
package org.opensearch.index.compositeindex.datacube.startree.aggregators;

import org.opensearch.common.annotation.ExperimentalApi;
import org.opensearch.index.compositeindex.datacube.MetricStat;
import org.opensearch.index.compositeindex.datacube.startree.aggregators.numerictype.StarTreeNumericType;
import org.opensearch.index.fielddata.IndexNumericFieldData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/
package org.opensearch.index.compositeindex.datacube.startree.aggregators;

import org.opensearch.common.annotation.ExperimentalApi;
import org.opensearch.index.compositeindex.datacube.MetricStat;
import org.opensearch.index.compositeindex.datacube.startree.aggregators.numerictype.StarTreeNumericType;

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

package org.opensearch.index.compositeindex.datacube.startree.aggregators.numerictype;

import org.opensearch.common.annotation.ExperimentalApi;
import org.opensearch.index.fielddata.IndexNumericFieldData;

import java.util.function.Function;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* Util class for building star tree
* @opensearch.experimental
*/
@ExperimentalApi
public class StarTreeBuilderUtils {

private StarTreeBuilderUtils() {}
Expand All @@ -33,6 +32,7 @@ private StarTreeBuilderUtils() {}
* Represents a node in a tree data structure, specifically designed for a star-tree implementation.
* A star-tree node will represent both star and non-star nodes.
*/
@ExperimentalApi
public static class TreeNode {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -680,23 +680,6 @@ public ObjectMapper getObjectMapper(String name) {
return this.mapper == null ? null : this.mapper.objectMappers().get(name);
}

public boolean isCompositeIndexPresent() {
return this.mapper != null && !getCompositeFieldTypes().isEmpty();
}

public Set<CompositeMappedFieldType> getCompositeFieldTypes() {
Set<CompositeMappedFieldType> compositeMappedFieldTypes = new HashSet<>();
if (this.mapper == null) {
return Collections.emptySet();
}
for (MappedFieldType type : this.mapper.fieldTypes()) {
if (type instanceof CompositeMappedFieldType) {
compositeMappedFieldTypes.add((CompositeMappedFieldType) type);
}
}
return compositeMappedFieldTypes;
}

/**
* Given a type (eg. long, string, ...), return an anonymous field mapper that can be used for search operations.
*/
Expand Down

0 comments on commit 114a3ee

Please sign in to comment.