Skip to content

Commit

Permalink
Added a doc and updated error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyuandong-db committed Nov 21, 2024
1 parent 33ddcbc commit bf48c01
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ public static DomainMetadata fromColumnVector(ColumnVector vector, int rowId) {
requireNonNull(vector.getChild(2), rowId, "removed").getBoolean(rowId));
}

/**
* Creates a {@link DomainMetadata} instance from a Row with the schema being {@link
* DomainMetadata#FULL_SCHEMA}.
*
* @param row the Row object containing the DomainMetadata action
* @return a DomainMetadata instance or null if the row is null
* @throws IllegalArgumentException if the schema of the row does not match {@link
* DomainMetadata#FULL_SCHEMA}
*/
public static DomainMetadata fromRow(Row row) {
if (row == null) {
return null;
Expand Down

0 comments on commit bf48c01

Please sign in to comment.