class EventUtils {

  public static EventTable toEventTable(Table sourceTable) {
    if (sourceTable == null) {
      return null;
    }
    return new EventTable(FieldSchemaUtils.getFieldNames(sourceTable.getPartitionKeys()),
        LocationUtils.hasLocation(sourceTable) ? LocationUtils.locationAsUri(sourceTable) : null);
  }

  private  EventUtils();

}