Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public String typeName() {
return CONTENT_TYPE;
}

public static InetAddress parse(Object value) {
private static InetAddress parse(Object value) {
if (value instanceof InetAddress) {
return (InetAddress) value;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@
*/
public class StarTreeQueryHelper {

private static StarTreeValues starTreeValues;

/**
* Checks if the search context can be supported by star-tree
*/
Expand All @@ -63,10 +61,9 @@ public static CompositeIndexFieldInfo getSupportedStarTree(QueryShardContext con

public static StarTreeValues getStarTreeValues(LeafReaderContext context, CompositeIndexFieldInfo starTree) throws IOException {
SegmentReader reader = Lucene.segmentReader(context.reader());
if (!(reader.getDocValuesReader() instanceof CompositeIndexReader)) {
if (!(reader.getDocValuesReader() instanceof CompositeIndexReader starTreeDocValuesReader)) {
return null;
}
CompositeIndexReader starTreeDocValuesReader = (CompositeIndexReader) reader.getDocValuesReader();
return (StarTreeValues) starTreeDocValuesReader.getCompositeIndexValues(starTree);
}

Expand Down
Loading