Skip to content

Commit 69f3c53

Browse files
committed
package private
1 parent 143b615 commit 69f3c53

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

modules/transport-grpc/src/main/java/org/opensearch/transport/grpc/proto/request/search/query/ExistsQueryBuilderProtoUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* This class provides methods to transform Protocol Buffer representations of exists queries
1717
* into their corresponding OpenSearch ExistsQueryBuilder implementations for search operations.
1818
*/
19-
public class ExistsQueryBuilderProtoUtils {
19+
class ExistsQueryBuilderProtoUtils {
2020

2121
private ExistsQueryBuilderProtoUtils() {
2222
// Utility class, no instances
@@ -32,7 +32,7 @@ private ExistsQueryBuilderProtoUtils() {
3232
* @return A configured ExistsQueryBuilder instance
3333
* @throws IllegalArgumentException if the exists query is null or missing required fields
3434
*/
35-
public static ExistsQueryBuilder fromProto(ExistsQuery existsQueryProto) {
35+
static ExistsQueryBuilder fromProto(ExistsQuery existsQueryProto) {
3636
if (existsQueryProto == null) {
3737
throw new IllegalArgumentException("ExistsQuery cannot be null");
3838
}

modules/transport-grpc/src/main/java/org/opensearch/transport/grpc/proto/request/search/query/MatchAllQueryBuilderProtoUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Utility class for converting MatchAllQuery Protocol Buffers to OpenSearch query objects.
1616
*/
17-
public class MatchAllQueryBuilderProtoUtils {
17+
class MatchAllQueryBuilderProtoUtils {
1818

1919
private MatchAllQueryBuilderProtoUtils() {
2020
// Utility class, no instances
@@ -29,7 +29,7 @@ private MatchAllQueryBuilderProtoUtils() {
2929
* @param matchAllQueryProto The Protocol Buffer MatchAllQuery to convert
3030
* @return A configured MatchAllQueryBuilder instance
3131
*/
32-
protected static MatchAllQueryBuilder fromProto(MatchAllQuery matchAllQueryProto) {
32+
static MatchAllQueryBuilder fromProto(MatchAllQuery matchAllQueryProto) {
3333
MatchAllQueryBuilder matchAllQueryBuilder = new MatchAllQueryBuilder();
3434

3535
if (matchAllQueryProto.hasBoost()) {

modules/transport-grpc/src/main/java/org/opensearch/transport/grpc/proto/request/search/query/MatchNoneQueryBuilderProtoUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* This class provides methods to transform Protocol Buffer representations of match_none queries
1717
* into their corresponding OpenSearch MatchNoneQueryBuilder implementations for search operations.
1818
*/
19-
public class MatchNoneQueryBuilderProtoUtils {
19+
class MatchNoneQueryBuilderProtoUtils {
2020

2121
private MatchNoneQueryBuilderProtoUtils() {
2222
// Utility class, no instances
@@ -31,7 +31,7 @@ private MatchNoneQueryBuilderProtoUtils() {
3131
* @param matchNoneQueryProto The Protocol Buffer MatchNoneQuery to convert
3232
* @return A configured MatchNoneQueryBuilder instance
3333
*/
34-
protected static MatchNoneQueryBuilder fromProto(MatchNoneQuery matchNoneQueryProto) {
34+
static MatchNoneQueryBuilder fromProto(MatchNoneQuery matchNoneQueryProto) {
3535
MatchNoneQueryBuilder matchNoneQueryBuilder = new MatchNoneQueryBuilder();
3636

3737
if (matchNoneQueryProto.hasBoost()) {

modules/transport-grpc/src/main/java/org/opensearch/transport/grpc/proto/request/search/query/RegexpQueryBuilderProtoUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* This class provides methods to transform Protocol Buffer representations of regexp queries
1919
* into their corresponding OpenSearch RegexpQueryBuilder implementations for search operations.
2020
*/
21-
public class RegexpQueryBuilderProtoUtils {
21+
class RegexpQueryBuilderProtoUtils {
2222

2323
private RegexpQueryBuilderProtoUtils() {
2424
// Utility class, no instances
@@ -35,7 +35,7 @@ private RegexpQueryBuilderProtoUtils() {
3535
* @return A configured RegexpQueryBuilder instance
3636
* @throws IllegalArgumentException if the regexp query is null or missing required fields
3737
*/
38-
public static RegexpQueryBuilder fromProto(RegexpQuery regexpQueryProto) {
38+
static RegexpQueryBuilder fromProto(RegexpQuery regexpQueryProto) {
3939
String field = regexpQueryProto.getField();
4040
String value = regexpQueryProto.getValue();
4141

modules/transport-grpc/src/main/java/org/opensearch/transport/grpc/proto/request/search/query/TermQueryBuilderProtoUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* This class provides methods to transform Protocol Buffer representations of term queries
2020
* into their corresponding OpenSearch TermQueryBuilder implementations for search operations.
2121
*/
22-
public class TermQueryBuilderProtoUtils {
22+
class TermQueryBuilderProtoUtils {
2323

2424
private TermQueryBuilderProtoUtils() {
2525
// Utility class, no instances
@@ -36,7 +36,7 @@ private TermQueryBuilderProtoUtils() {
3636
* @return A configured TermQueryBuilder instance
3737
* @throws IllegalArgumentException if the field value type is not supported, or if the term query field value is not recognized
3838
*/
39-
protected static TermQueryBuilder fromProto(TermQuery termQueryProto) {
39+
static TermQueryBuilder fromProto(TermQuery termQueryProto) {
4040
String queryName = null;
4141
String fieldName = termQueryProto.getField();
4242
Object value = null;

modules/transport-grpc/src/main/java/org/opensearch/transport/grpc/proto/request/search/query/TermsQueryBuilderProtoUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* This class provides methods to transform Protocol Buffer representations of terms queries
2626
* into their corresponding OpenSearch TermsQueryBuilder implementations for search operations.
2727
*/
28-
public class TermsQueryBuilderProtoUtils {
28+
class TermsQueryBuilderProtoUtils {
2929

3030
private TermsQueryBuilderProtoUtils() {
3131
// Utility class, no instances
@@ -42,7 +42,7 @@ private TermsQueryBuilderProtoUtils() {
4242
* @return A configured TermQueryBuilder instance
4343
* @throws IllegalArgumentException if the terms query is invalid or missing required fields
4444
*/
45-
public static TermsQueryBuilder fromProto(org.opensearch.protobufs.TermsQuery termsQueryProto) {
45+
static TermsQueryBuilder fromProto(org.opensearch.protobufs.TermsQuery termsQueryProto) {
4646
if (termsQueryProto == null) {
4747
throw new IllegalArgumentException("TermsQuery must not be null");
4848
}
@@ -83,7 +83,7 @@ public static TermsQueryBuilder fromProto(org.opensearch.protobufs.TermsQuery te
8383
* @return A configured TermQueryBuilder instance
8484
* @throws IllegalArgumentException if the term query field value is not recognized
8585
*/
86-
protected static TermsQueryBuilder fromProto(TermsQueryField termsQueryProto) {
86+
static TermsQueryBuilder fromProto(TermsQueryField termsQueryProto) {
8787
String fieldName = null;
8888
List<Object> values = null;
8989
TermsLookup termsLookup = null;
@@ -124,7 +124,7 @@ protected static TermsQueryBuilder fromProto(TermsQueryField termsQueryProto) {
124124
* @return configured TermsQueryBuilder
125125
* @throws IllegalArgumentException if neither values nor lookup is set, or if bitmap validation fails
126126
*/
127-
protected static TermsQueryBuilder fromProto(
127+
static TermsQueryBuilder fromProto(
128128
String fieldName,
129129
org.opensearch.protobufs.TermsQueryField termsQueryField,
130130
org.opensearch.protobufs.TermsQueryValueType valueTypeProto

modules/transport-grpc/src/main/java/org/opensearch/transport/grpc/proto/request/search/query/WildcardQueryBuilderProtoConverter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
import org.opensearch.transport.grpc.spi.QueryBuilderProtoConverter;
1313

1414
/**
15-
* Converter for Bool queries.
16-
* This class implements the QueryBuilderProtoConverter interface to provide Bool query support
15+
* Converter for Wildcard queries.
16+
* This class implements the QueryBuilderProtoConverter interface to provide Wildcard query support
1717
* for the gRPC transport module.
1818
*/
1919
public class WildcardQueryBuilderProtoConverter implements QueryBuilderProtoConverter {

modules/transport-grpc/src/main/java/org/opensearch/transport/grpc/proto/request/search/query/WildcardQueryBuilderProtoUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* This class provides methods to transform Protocol Buffer representations of wildcard queries
2020
* into their corresponding OpenSearch WildcardQueryBuilder implementations for search operations.
2121
*/
22-
public class WildcardQueryBuilderProtoUtils {
22+
class WildcardQueryBuilderProtoUtils {
2323

2424
private WildcardQueryBuilderProtoUtils() {
2525
// Utility class, no instances
@@ -36,7 +36,7 @@ private WildcardQueryBuilderProtoUtils() {
3636
* @return A configured WildcardQueryBuilder instance
3737
* @throws IllegalArgumentException if neither value nor wildcard field is set
3838
*/
39-
public static WildcardQueryBuilder fromProto(WildcardQuery wildcardQueryProto) {
39+
static WildcardQueryBuilder fromProto(WildcardQuery wildcardQueryProto) {
4040
String queryName = null;
4141
String fieldName = null;
4242
String value = null;

0 commit comments

Comments
 (0)