public class GlueUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
makePartitionName(List<com.amazonaws.services.glue.model.Column> columns,
List<String> partitionValues)
Align to hive makePartName, convert glue partition information to alluxio partition name.
|
static String |
makePartName(List<String> partCols,
List<String> vals)
Make partition name for glue, wrapper of hive makePartName.
|
static List<FieldSchema> |
toProto(List<com.amazonaws.services.glue.model.Column> glueCloumns)
Convert the Glue FieldSchema to Alluxio FieldSchema.
|
static Storage |
toProto(com.amazonaws.services.glue.model.StorageDescriptor sd,
PathTranslator translator)
Convert the Glue Storage Descriptor and Translator information to Storage.
|
static Schema |
toProtoSchema(List<com.amazonaws.services.glue.model.Column> glueColumns)
Convert glue field schema to alluxio proto (Glue do not have filedschema api).
|
public static Schema toProtoSchema(List<com.amazonaws.services.glue.model.Column> glueColumns)
glueColumns
- list of glue columnspublic static List<FieldSchema> toProto(List<com.amazonaws.services.glue.model.Column> glueCloumns)
glueCloumns
- Glue FiledSchemapublic static Storage toProto(com.amazonaws.services.glue.model.StorageDescriptor sd, PathTranslator translator) throws IOException
sd
- the glue storage descriptortranslator
- the glue translatorIOException
public static String makePartitionName(List<com.amazonaws.services.glue.model.Column> columns, List<String> partitionValues) throws IOException
columns
- glue table partition keyspartitionValues
- glue partition valuesIOException
Copyright © 2023. All Rights Reserved.