class IcebergObjectInspector extends TypeUtil.SchemaVisitor<ObjectInspector> {

  public static ObjectInspector create(@Nullable Schema schema) {
    if (schema == null) {
      return IcebergRecordObjectInspector.empty();
    }

    return TypeUtil.visit(schema, new IcebergObjectInspector());
  }

}