Skip to content

Commit

Permalink
Update comments.
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
  • Loading branch information
Yury-Fridlyand committed Jan 11, 2023
1 parent 46f20ee commit ae11c22
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

import lombok.EqualsAndHashCode;

/**
* The type of a binary value. See
* <a href="https://opensearch.org/docs/latest/opensearch/supported-field-types/binary/">doc</a>
*/
@EqualsAndHashCode(callSuper = false)
public class OpenSearchBinaryType extends OpenSearchDataType {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ protected OpenSearchDataType(ExprCoreType type) {
protected OpenSearchDataType() {
}

// object has properties
// object and nested types have properties - info about embedded types
@Getter
@EqualsAndHashCode.Exclude
Map<String, OpenSearchDataType> properties = new LinkedHashMap<>();
Expand All @@ -157,7 +157,7 @@ protected OpenSearchDataType() {

@Override
public String typeName() {
if (exprCoreType != ExprCoreType.UNKNOWN || type == null) {
if (type == null) {
return exprCoreType.typeName();
}
return type.toString().toLowerCase();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

import lombok.EqualsAndHashCode;

/**
* The type of a binary value. See
* <a href="https://opensearch.org/docs/latest/opensearch/supported-field-types/geo-point/">doc</a>
*/
@EqualsAndHashCode(callSuper = false)
public class OpenSearchGeoPointType extends OpenSearchDataType {

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

import lombok.EqualsAndHashCode;

/**
* The type of a binary value. See
* <a href="https://opensearch.org/docs/latest/opensearch/supported-field-types/ip/">doc</a>
*/
@EqualsAndHashCode(callSuper = false)
public class OpenSearchIpType extends OpenSearchDataType {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
import lombok.EqualsAndHashCode;
import org.opensearch.sql.data.type.ExprType;

/**
* The type of a binary value. See
* <a href="https://opensearch.org/docs/latest/opensearch/supported-field-types/text/">doc</a>
*/
@EqualsAndHashCode(callSuper = false)
public class OpenSearchTextType extends OpenSearchDataType {

Expand Down

0 comments on commit ae11c22

Please sign in to comment.