public int setColumnIndexUsingSchema ( NodeSchema inputSchema ) { int index = inputSchema . getIndexOfTve ( this ) ; if ( index < 0 ) { //* enable to debug*/ System.out.println("DEBUG: setColumnIndex miss: " + this); //* enable to debug*/ System.out.println("DEBUG: setColumnIndex candidates: " + inputSchema); return index ; } setColumnIndex ( index ) ; if ( getValueType ( ) == null ) { // In case of sub-queries the TVE may not have its // value type and size resolved yet. Try to resolve it now SchemaColumn inputColumn = inputSchema . getColumn ( index ) ; setTypeSizeAndInBytes ( inputColumn ) ; } return index ; }
Given an input schema resolve this TVE expression .