public class SchemaEvolution extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SchemaEvolution.IllegalEvolutionException |
Modifier and Type | Field and Description |
---|---|
static List<String> |
acidEventFieldNames |
Constructor and Description |
---|
SchemaEvolution(TypeDescription fileSchema,
Reader.Options options) |
SchemaEvolution(TypeDescription fileSchema,
TypeDescription readerSchema,
Reader.Options options) |
Modifier and Type | Method and Description |
---|---|
static TypeDescription |
createEventSchema(TypeDescription typeDescr) |
boolean[] |
getFileIncluded() |
TypeDescription |
getFileSchema() |
TypeDescription |
getFileType(int id)
Get the file type by reader type id.
|
TypeDescription |
getFileType(TypeDescription readerType) |
TypeDescription |
getReaderBaseSchema()
Returns the non-ACID (aka base) reader type description.
|
boolean[] |
getReaderIncluded() |
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, Reader.Options options)
public SchemaEvolution(TypeDescription fileSchema, TypeDescription readerSchema, Reader.Options options)
public TypeDescription getReaderSchema()
public TypeDescription getReaderBaseSchema()
public boolean hasConversion()
public TypeDescription getFileSchema()
public TypeDescription getFileType(TypeDescription readerType)
public TypeDescription getFileType(int id)
id
- reader column idpublic boolean[] getReaderIncluded()
public boolean[] getFileIncluded()
public boolean isPPDSafeConversion(int colId)
colId
- reader column idpublic static TypeDescription createEventSchema(TypeDescription typeDescr)
typeDescr
- Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.