public class SchemaEvolution extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | SchemaEvolution.IllegalEvolutionException | 
| Constructor and Description | 
|---|
| SchemaEvolution(TypeDescription fileSchema,
               boolean[] readerIncluded)Deprecated.  | 
| SchemaEvolution(TypeDescription fileSchema,
               TypeDescription readerSchema,
               boolean[] readerIncluded)Deprecated.  | 
| SchemaEvolution(TypeDescription fileSchema,
               TypeDescription readerSchema,
               Reader.Options options) | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | checkAcidSchema(TypeDescription type) | 
| static TypeDescription | createEventSchema(TypeDescription typeDescr) | 
| static TypeDescription | getBaseRow(TypeDescription typeDescription)Get the underlying base row from an ACID event struct. | 
| boolean[] | getFileIncluded()Get whether each column is included from the file's point of view. | 
| TypeDescription | getFileSchema() | 
| TypeDescription | getFileType(int id)Get the file type by reader type id. | 
| TypeDescription | getFileType(TypeDescription readerType) | 
| boolean | getPositionalColumns()Get whether the columns are handled via position or name | 
| TypeDescription | getReaderBaseSchema()Returns the non-ACID (aka base) reader type description. | 
| boolean[] | getReaderIncluded()Get whether each column is included from the reader's point of view. | 
| TypeDescription | getReaderSchema() | 
| boolean | hasConversion()Is there Schema Evolution data type conversion? | 
| boolean | includeReaderColumn(int readerId)Should we read the given reader column? | 
| boolean | isOnlyImplicitConversion()When there Schema Evolution data type conversion i.e. | 
| boolean | isPPDSafeConversion(int fileColId)Check if column is safe for ppd evaluation | 
| boolean | isSchemaEvolutionCaseAware() | 
public SchemaEvolution(TypeDescription fileSchema, TypeDescription readerSchema, Reader.Options options)
@Deprecated public SchemaEvolution(TypeDescription fileSchema, boolean[] readerIncluded)
@Deprecated public SchemaEvolution(TypeDescription fileSchema, TypeDescription readerSchema, boolean[] readerIncluded)
public boolean isSchemaEvolutionCaseAware()
public TypeDescription getReaderSchema()
public TypeDescription getReaderBaseSchema()
public boolean hasConversion()
public boolean isOnlyImplicitConversion()
public TypeDescription getFileSchema()
public TypeDescription getFileType(TypeDescription readerType)
public TypeDescription getFileType(int id)
id - reader column idpublic boolean[] getReaderIncluded()
public boolean[] getFileIncluded()
public boolean getPositionalColumns()
public boolean isPPDSafeConversion(int fileColId)
fileColId - file column idpublic boolean includeReaderColumn(int readerId)
readerId - the id of column in the extended reader schemapublic static boolean checkAcidSchema(TypeDescription type)
public static TypeDescription createEventSchema(TypeDescription typeDescr)
typeDescr - public static TypeDescription getBaseRow(TypeDescription typeDescription)
typeDescription - the ACID event schema.Copyright © 2013–2023 The Apache Software Foundation. All rights reserved.