determine whether a database or table name is valid . a name is valid if and only if : it starts with an alphanumeric character , contains only alphanumeric characters and '_' , and is not composed of numbers only . concode_field_sep boolean sanitizeNameAllowed concode_elem_sep String HIVE_DATABASE_NAME_PREFIX concode_elem_sep String HIVE_TABLE_NAME concode_elem_sep String ADDITIONAL_HIVE_TABLE_NAMES concode_elem_sep Pattern VALID_DB_TABLE_NAME_PATTERN_1 concode_elem_sep String tableNamePrefix concode_elem_sep String HIVE_DATABASE_NAME concode_elem_sep String HIVE_DATABASE_NAME_SUFFIX concode_elem_sep String HIVE_TABLE_NAME_PREFIX concode_elem_sep FileSystem fs concode_elem_sep String dbNameSuffix concode_elem_sep HiveRegProps props concode_elem_sep String HIVE_DATABASE_REGEX concode_elem_sep String HIVE_FS_URI concode_elem_sep String ADDITIONAL_HIVE_DATABASE_NAMES concode_elem_sep String dbNamePrefix concode_elem_sep String HIVE_SANITIZE_INVALID_NAMES concode_elem_sep Optional<Pattern> dbNamePattern concode_elem_sep Optional<Pattern> tableNamePattern concode_elem_sep String HIVE_TABLE_REGEX concode_elem_sep String tableNameSuffix concode_elem_sep String HIVE_TABLE_NAME_SUFFIX concode_elem_sep Pattern VALID_DB_TABLE_NAME_PATTERN_2 concode_field_sep Iterable<String> getDatabaseNames concode_elem_sep Collection<HiveSpec> getHiveSpecs concode_elem_sep Optional<String> getTableName concode_elem_sep Optional<String> getDatabaseName concode_elem_sep String getDatabaseOrTableName concode_elem_sep String sanitizeAndValidateName concode_elem_sep Iterable<String> getTableNames concode_elem_sep HiveRegistrationPolicy getPolicy concode_elem_sep Path getTableLocation concode_elem_sep Optional<HivePartition> getPartition concode_elem_sep List<HiveTable> getTables concode_elem_sep HiveTable getTable concode_elem_sep String sanitizeName
boolean function ( String arg0 ) { Preconditions . checkNotNull ( arg0 ) ; arg0 = arg0 . toLowerCase ( ) ; return VALID_DB_TABLE_NAME_PATTERN_1 . matcher ( arg0 ) . matches ( ) && VALID_DB_TABLE_NAME_PATTERN_2 . matcher ( arg0 ) . matches ( ) ; }