Package org.teiid.dqp.internal.process
Class MetaDataProcessor
- java.lang.Object
-
- org.teiid.dqp.internal.process.MetaDataProcessor
-
public class MetaDataProcessor extends Object
Handles MetaDataMessages on behalf of DQPCore.
-
-
Field Summary
Fields Modifier and Type Field Description static String
XML_COLUMN_NAME
-
Constructor Summary
Constructors Constructor Description MetaDataProcessor(DQPCore requestManager, SessionAwareCache<PreparedPlan> planCache, String vdbName, Object vdbVersion)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getColumnName(boolean pgColumnNames, Expression symbol)
Map<Integer,Object>
getDefaultColumn(String tableName, String columnName, Class<?> javaType)
Map<Integer,Object>
getDefaultColumn(String tableName, String columnName, String columnLabel, Class<?> javaType)
static void
setColumnMetadata(Column column, Expression symbol, QueryMetadataInterface metadata)
Set the easily determined metadata from symbol on the given Columnstatic void
updateMetadataAcrossBranches(SetQuery originalCommand, List<Column> columns, QueryMetadataInterface metadata)
-
-
-
Field Detail
-
XML_COLUMN_NAME
public static final String XML_COLUMN_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MetaDataProcessor
public MetaDataProcessor(DQPCore requestManager, SessionAwareCache<PreparedPlan> planCache, String vdbName, Object vdbVersion)
-
-
Method Detail
-
updateMetadataAcrossBranches
public static void updateMetadataAcrossBranches(SetQuery originalCommand, List<Column> columns, QueryMetadataInterface metadata) throws TeiidComponentException
- Throws:
TeiidComponentException
-
getColumnName
public static String getColumnName(boolean pgColumnNames, Expression symbol)
-
setColumnMetadata
public static void setColumnMetadata(Column column, Expression symbol, QueryMetadataInterface metadata) throws QueryMetadataException, TeiidComponentException
Set the easily determined metadata from symbol on the given Column- Parameters:
column
-symbol
-metadata
-- Throws:
QueryMetadataException
TeiidComponentException
-
getDefaultColumn
public Map<Integer,Object> getDefaultColumn(String tableName, String columnName, Class<?> javaType)
-
-