private static Tuple2 < List < String > , List < String > > normalizeSupportedProperties ( TableFactory factory ) { List < String > supportedProperties = factory . supportedProperties ( ) ; if ( supportedProperties == null ) { throw new TableException ( String . format ( "Supported properties of factory '%s' must not be null." , factory . getClass ( ) . getName ( ) ) ) ; } List < String > supportedKeys = supportedProperties . stream ( ) . map ( p -> p . toLowerCase ( ) ) . collect ( Collectors . toList ( ) ) ; // extract wildcard prefixes List < String > wildcards = extractWildcardPrefixes ( supportedKeys ) ; return Tuple2 . of ( supportedKeys , wildcards ) ; }
Prepares the supported properties of a factory to be used for match operations .