Hive13DdlGenerator extends DdlGenerator { public String getDdlCharacterValue(String string) { return getDdlCharacterValue(string, false); }  String escapeSingleQuotes(String string); @Override String generateCreateTableDdl(BusinessObjectDataDdlRequest request, BusinessObjectFormatEntity businessObjectFormatEntity,
        CustomDdlEntity customDdlEntity, List<String> storageNames, List<StorageEntity> requestedStorageEntities,
        Map<String, StorageEntity> cachedStorageEntities, Map<String, String> cachedS3BucketNames); @Override String generateCreateTableDdl(BusinessObjectFormatDdlRequest request, BusinessObjectFormatEntity businessObjectFormatEntity,
        CustomDdlEntity customDdlEntity); @Override String generateReplaceColumnsStatement(BusinessObjectFormatDdlRequest request, BusinessObjectFormatEntity businessObjectFormatEntity); String getDdlCharacterValue(String string); String getDdlCharacterValue(String string, boolean escapeSingleBackslash); @Override BusinessObjectDataDdlOutputFormatEnum getDdlOutputFormat(); List<HivePartitionDto> getHivePartitions(BusinessObjectDataKey businessObjectDataKey, List<SchemaColumn> autoDiscoverableSubPartitionColumns,
        String s3KeyPrefix, Collection<String> storageFiles, String storageName); Pattern getHivePathPattern(List<SchemaColumn> partitionColumns); String getHivePathRegex(List<SchemaColumn> partitionColumns); static final String NO_PARTITIONING_PARTITION_KEY; static final String NO_PARTITIONING_PARTITION_VALUE; static final String ORC_HIVE_FILE_FORMAT; static final String PARQUET_HIVE_FILE_FORMAT; static final String TEXT_HIVE_FILE_FORMAT; static final String JSON_HIVE_FILE_FORMAT; static final String REGEX_S3_EMPTY_PARTITION; }
@Test public void testGetDdlCharacterValueEmptyString() { assertEquals("", hive13DdlGenerator.getDdlCharacterValue("")); }
@Test public void testGetDdlCharacterValueLineFeed() { assertEquals("\\012", hive13DdlGenerator.getDdlCharacterValue("\n")); }
@Test public void testGetDdlCharacterValueAsciiPrintable() { assertEquals("|", hive13DdlGenerator.getDdlCharacterValue("|")); }
@Test public void testGetDdlCharacterValueAsciiNonAsciiMix() { assertEquals("A\\200B", hive13DdlGenerator.getDdlCharacterValue("A" + String.valueOf((char) 128) + "B")); }
@Test public void testGetDdlCharacterValueTwoNonAsciiPrintableChars() { assertEquals("\\200\\001", hive13DdlGenerator.getDdlCharacterValue(String.valueOf((char) 128) + String.valueOf((char) 1))); }
@Test public void testGetDdlCharacterValueEscapeSingleBackslash() { assertEquals("\\", hive13DdlGenerator.getDdlCharacterValue("\\")); assertEquals("\\", hive13DdlGenerator.getDdlCharacterValue("\\", false)); assertEquals("\\\\", hive13DdlGenerator.getDdlCharacterValue("\\", true)); assertEquals("\\\\", hive13DdlGenerator.getDdlCharacterValue("\\\\", true)); }