code: public boolean sameTypes(Schema schema) {
          if (schema.numColumns() != numColumns())
              return false;
          for (int i = 0; i < schema.numColumns(); i++) {
              if (getType(i) != schema.getType(i))
                  return false;
          }
  
          return true;
      }
docs: Returns true if the given schema
  has the same types at each index
  @param schema the schema to compare the types to
  @return true if the schema has the same types
  at every index as this one,false otherwise