in clients/cli/src/main/java/org/apache/gravitino/cli/outputs/PlainFormat.java [46:82]
public static void output(Object entity, CommandContext context) {
if (entity instanceof Metalake) {
new MetalakePlainFormat(context).output((Metalake) entity);
} else if (entity instanceof Metalake[]) {
new MetalakeListPlainFormat(context).output((Metalake[]) entity);
} else if (entity instanceof Catalog) {
new CatalogPlainFormat(context).output((Catalog) entity);
} else if (entity instanceof Catalog[]) {
new CatalogListPlainFormat(context).output((Catalog[]) entity);
} else if (entity instanceof Schema) {
new SchemaPlainFormat(context).output((Schema) entity);
} else if (entity instanceof Schema[]) {
new SchemaListPlainFormat(context).output((Schema[]) entity);
} else if (entity instanceof Table) {
new TablePlainFormat(context).output((Table) entity);
} else if (entity instanceof Table[]) {
new TableListPlainFormat(context).output((Table[]) entity);
} else if (entity instanceof Model) {
new ModelDetailPlainFormat(context).output((Model) entity);
} else if (entity instanceof Model[]) {
new ModelListPlainFormat(context).output((Model[]) entity);
} else if (entity instanceof User) {
new UserDetailsPlainFormat(context).output((User) entity);
} else if (entity instanceof User[]) {
new UserListPlainFormat(context).output((User[]) entity);
} else if (entity instanceof Group) {
new GroupDetailsPlainFormat(context).output((Group) entity);
} else if (entity instanceof Group[]) {
new GroupListPlainFormat(context).output((Group[]) entity);
} else if (entity instanceof Audit) {
new AuditPlainFormat(context).output((Audit) entity);
} else if (entity instanceof Column[]) {
new ColumnListPlainFormat(context).output((Column[]) entity);
} else {
throw new IllegalArgumentException("Unsupported object type");
}
}