@Test public void testGenerateColumnAlias5AndPrior() { when( driver.getMajorVersion() ).thenReturn( 0 ); when( driver.getMinorVersion() ).thenReturn( 5 ); String suggestedName = "suggestedName"; int columnIndex = 12; assertEquals( suggestedName, hive2DatabaseMeta.generateColumnAlias( columnIndex, suggestedName ) ); }
@Override public String generateColumnAlias( int columnIndex, String suggestedName ) { return suggestedName; }
Hive2DatabaseMeta extends DatabaseMetaWithVersion { @Override public String generateColumnAlias( int columnIndex, String suggestedName ) { return suggestedName; } }
Hive2DatabaseMeta extends DatabaseMetaWithVersion { @Override public String generateColumnAlias( int columnIndex, String suggestedName ) { return suggestedName; } Hive2DatabaseMeta( DriverLocator driverLocator, NamedClusterService namedClusterService,
                            MetastoreLocator metastoreLocator ); }
Hive2DatabaseMeta extends DatabaseMetaWithVersion { @Override public String generateColumnAlias( int columnIndex, String suggestedName ) { return suggestedName; } Hive2DatabaseMeta( DriverLocator driverLocator, NamedClusterService namedClusterService,
                            MetastoreLocator metastoreLocator ); @Override int[] getAccessTypeList(); @Override String getAddColumnStatement( String tablename, ValueMetaInterface v, String tk, boolean useAutoinc,
                                       String pk, boolean semicolon ); @Override String getDriverClass(); @Override String getFieldDefinition( ValueMetaInterface v, String tk, String pk, boolean useAutoinc,
                                    boolean addFieldname, boolean addCr ); @Override String getModifyColumnStatement( String tablename, ValueMetaInterface v, String tk, boolean useAutoinc,
                                          String pk, boolean semicolon ); @Override String getURL( String hostname, String port, String databaseName ); @Override String[] getUsedLibraries(); @Override String getSelectCountStatement( String tableName ); @Override String generateColumnAlias( int columnIndex, String suggestedName ); String getStartQuote(); String getEndQuote(); @Override String[] getTableTypes(); @Override String[] getViewTypes(); @Override String getTruncateTableStatement( String tableName ); @Override boolean supportsSetCharacterStream(); @Override boolean supportsBatchUpdates(); @Override boolean supportsTimeStampToDateConversion(); @Override List<String> getNamedClusterList(); @Override void putOptionalOptions( Map<String, String> extraOptions ); }
Hive2DatabaseMeta extends DatabaseMetaWithVersion { @Override public String generateColumnAlias( int columnIndex, String suggestedName ) { return suggestedName; } Hive2DatabaseMeta( DriverLocator driverLocator, NamedClusterService namedClusterService,
                            MetastoreLocator metastoreLocator ); @Override int[] getAccessTypeList(); @Override String getAddColumnStatement( String tablename, ValueMetaInterface v, String tk, boolean useAutoinc,
                                       String pk, boolean semicolon ); @Override String getDriverClass(); @Override String getFieldDefinition( ValueMetaInterface v, String tk, String pk, boolean useAutoinc,
                                    boolean addFieldname, boolean addCr ); @Override String getModifyColumnStatement( String tablename, ValueMetaInterface v, String tk, boolean useAutoinc,
                                          String pk, boolean semicolon ); @Override String getURL( String hostname, String port, String databaseName ); @Override String[] getUsedLibraries(); @Override String getSelectCountStatement( String tableName ); @Override String generateColumnAlias( int columnIndex, String suggestedName ); String getStartQuote(); String getEndQuote(); @Override String[] getTableTypes(); @Override String[] getViewTypes(); @Override String getTruncateTableStatement( String tableName ); @Override boolean supportsSetCharacterStream(); @Override boolean supportsBatchUpdates(); @Override boolean supportsTimeStampToDateConversion(); @Override List<String> getNamedClusterList(); @Override void putOptionalOptions( Map<String, String> extraOptions ); static final String URL_PREFIX; static final String SELECT_COUNT_1_FROM; static final String ALIAS_SUFFIX; static final String VIEW; static final String VIRTUAL_VIEW; static final String TRUNCATE_TABLE; static final int[] ACCESS_TYPE_LIST; }