public static List < String > extractTableSegmentTokens ( String qualifiedName ) { Preconditions . checkNotNull ( qualifiedName ) ; List < String > retVal = new LinkedList <> ( ) ; String [ ] tokens = qualifiedName . split ( "[/]" ) ; Preconditions . checkArgument ( tokens . length > 2 ) ; Preconditions . checkArgument ( tokens [ 1 ] . equals ( TABLES ) ) ; // add scope retVal . add ( tokens [ 0 ] ) ; for ( int i = 2 ; i < tokens . length ; i ++ ) { retVal . add ( tokens [ i ] ) ; } return retVal ; }
Method to extract tokens that were used to compose fully qualified table segment name using method getQualifiedTableName .