@Test public void toProto() { assertEquals(MockGlueDatabase.alluxioFieldSchema(), GlueUtils.toProto(ImmutableList.of(MockGlueDatabase.glueTestColumn(COLUMN_NAME)))); }
public static List<alluxio.grpc.table.FieldSchema> toProto(List<Column> glueCloumns) { if (glueCloumns == null) { return Collections.emptyList(); } List<alluxio.grpc.table.FieldSchema> list = new ArrayList<>(); for (Column column:glueCloumns) { alluxio.grpc.table.FieldSchema.Builder builder = alluxio.grpc.table.FieldSchema.newBuilder() .setName(column.getName()) .setType(column.getType()); if (column.getComment() != null) { builder.setComment(column.getComment()); } list.add(builder.build()); } return list; }
GlueUtils { public static List<alluxio.grpc.table.FieldSchema> toProto(List<Column> glueCloumns) { if (glueCloumns == null) { return Collections.emptyList(); } List<alluxio.grpc.table.FieldSchema> list = new ArrayList<>(); for (Column column:glueCloumns) { alluxio.grpc.table.FieldSchema.Builder builder = alluxio.grpc.table.FieldSchema.newBuilder() .setName(column.getName()) .setType(column.getType()); if (column.getComment() != null) { builder.setComment(column.getComment()); } list.add(builder.build()); } return list; } }
GlueUtils { public static List<alluxio.grpc.table.FieldSchema> toProto(List<Column> glueCloumns) { if (glueCloumns == null) { return Collections.emptyList(); } List<alluxio.grpc.table.FieldSchema> list = new ArrayList<>(); for (Column column:glueCloumns) { alluxio.grpc.table.FieldSchema.Builder builder = alluxio.grpc.table.FieldSchema.newBuilder() .setName(column.getName()) .setType(column.getType()); if (column.getComment() != null) { builder.setComment(column.getComment()); } list.add(builder.build()); } return list; } private  GlueUtils(); }
GlueUtils { public static List<alluxio.grpc.table.FieldSchema> toProto(List<Column> glueCloumns) { if (glueCloumns == null) { return Collections.emptyList(); } List<alluxio.grpc.table.FieldSchema> list = new ArrayList<>(); for (Column column:glueCloumns) { alluxio.grpc.table.FieldSchema.Builder builder = alluxio.grpc.table.FieldSchema.newBuilder() .setName(column.getName()) .setType(column.getType()); if (column.getComment() != null) { builder.setComment(column.getComment()); } list.add(builder.build()); } return list; } private  GlueUtils(); static Schema toProtoSchema(List<Column> glueColumns); static List<alluxio.grpc.table.FieldSchema> toProto(List<Column> glueCloumns); static ColumnStatisticsInfo toProto(ColumnStatistics glueColumnStatistic); static Storage toProto(StorageDescriptor sd, PathTranslator translator); static String makePartitionName(List<Column> columns, List<String> partitionValues); static String makePartName(List<String> partCols, List<String> vals); }
GlueUtils { public static List<alluxio.grpc.table.FieldSchema> toProto(List<Column> glueCloumns) { if (glueCloumns == null) { return Collections.emptyList(); } List<alluxio.grpc.table.FieldSchema> list = new ArrayList<>(); for (Column column:glueCloumns) { alluxio.grpc.table.FieldSchema.Builder builder = alluxio.grpc.table.FieldSchema.newBuilder() .setName(column.getName()) .setType(column.getType()); if (column.getComment() != null) { builder.setComment(column.getComment()); } list.add(builder.build()); } return list; } private  GlueUtils(); static Schema toProtoSchema(List<Column> glueColumns); static List<alluxio.grpc.table.FieldSchema> toProto(List<Column> glueCloumns); static ColumnStatisticsInfo toProto(ColumnStatistics glueColumnStatistic); static Storage toProto(StorageDescriptor sd, PathTranslator translator); static String makePartitionName(List<Column> columns, List<String> partitionValues); static String makePartName(List<String> partCols, List<String> vals);  }