TableSchema implements Serializable { public static TableSchema of(Column... columns) { return new AutoValue_TableSchema(Arrays.asList(columns)); }  abstract List<Column> columns(); static TableSchema of(Column... columns); static Schema getEquivalentSchema(TableSchema tableSchema); static Schema.FieldType getEquivalentFieldType(ColumnType columnType);  }
@Test public void testParseEnum8() { Map<String, Integer> enumValues = ImmutableMap.of( "a", -1, "b", 0, "c", 42); assertEquals( ColumnType.enum8(enumValues), ColumnType.parse("Enum8('a' = -1, 'b' = 0, 'c' = 42)")); }
@Test public void testParseEnum16() { Map<String, Integer> enumValues = ImmutableMap.of( "a", -1, "b", 0, "c", 42); assertEquals( ColumnType.enum16(enumValues), ColumnType.parse("Enum16('a' = -1, 'b' = 0, 'c' = 42)")); }
@Test public void testParseNullableEnum16() { Map<String, Integer> enumValues = ImmutableMap.of( "a", -1, "b", 0, "c", 42); assertEquals( ColumnType.enum16(enumValues).withNullable(true), ColumnType.parse("Nullable(Enum16('a' = -1, 'b' = 0, 'c' = 42))")); }