class TupleSchema implements TupleMetadata {

  public static AbstractColumnMetadata fromField(MaterializedField field) {
    if (field.getType().getMinorType() == MinorType.MAP) {
      return newMap(field);
    } else {
      return new PrimitiveColumnMetadata(field);
    }
  }

}