Skip to content

Commit

Permalink
add flat object support
Browse files Browse the repository at this point in the history
Signed-off-by: bfindlay <bfindlay@acm.org>
  • Loading branch information
Bfindlay committed Nov 20, 2023
1 parent 60a27dc commit 82b5035
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public enum FieldType implements JsonEnum {

RankFeatures("rank_features"),

Flattened("flattened"),
FlatObject("flat_object"),

Shape("shape"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,17 +402,17 @@ public FieldAliasProperty alias() {
}

/**
* Is this variant instance of kind {@code flattened}?
* Is this variant instance of kind {@code flat_oject}?
*/
public boolean isFlatObject() {
return _kind == Kind.FlatObject;
}

/**
* Get the {@code flattened} variant value.
* Get the {@code flat_object} variant value.
*
* @throws IllegalStateException
* if the current variant is not of the {@code flattened} kind.
* if the current variant is not of the {@code flat_object} kind.
*/
public FlatObjectProperty flatObject() {
return TaggedUnionUtils.get(this, Kind.FlatObject);
Expand Down

0 comments on commit 82b5035

Please sign in to comment.