public class SchemaEvolution extends Object
Modifier and Type | Field and Description |
---|---|
static List<String> |
acidEventFieldNames |
Constructor and Description |
---|
SchemaEvolution(TypeDescription fileSchema,
boolean[] includedCols) |
SchemaEvolution(TypeDescription fileSchema,
TypeDescription readerSchema,
boolean[] includeCols) |
Modifier and Type | Method and Description |
---|---|
static TypeDescription |
createEventSchema(TypeDescription typeDescr) |
TypeDescription |
getFileType(int id)
Get the file type by reader type id.
|
TypeDescription |
getFileType(TypeDescription readerType) |
TypeDescription |
getReaderSchema() |
boolean |
hasConversion()
Is there Schema Evolution data type conversion?
|
boolean |
isPPDSafeConversion(int colId)
Check if column is safe for ppd evaluation
|
public SchemaEvolution(TypeDescription fileSchema, boolean[] includedCols)
public SchemaEvolution(TypeDescription fileSchema, TypeDescription readerSchema, boolean[] includeCols)
public TypeDescription getReaderSchema()
public boolean hasConversion()
public TypeDescription getFileType(TypeDescription readerType)
public TypeDescription getFileType(int id)
id
- reader column idpublic boolean isPPDSafeConversion(int colId)
colId
- reader column idpublic static TypeDescription createEventSchema(TypeDescription typeDescr)
typeDescr
- Copyright © 2016 The Apache Software Foundation. All rights reserved.