final void validateColumnType ( int columnIndex , VoltType ... types ) { if ( m_position < 0 ) throw new RuntimeException ( "VoltTableRow is in an invalid state. Consider calling advanceRow()." ) ; if ( ( columnIndex >= getColumnCount ( ) ) || ( columnIndex < 0 ) ) { throw new IndexOutOfBoundsException ( "Column index " + columnIndex + " is greater than the number of columns" ) ; } final VoltType columnType = getColumnType ( columnIndex ) ; for ( VoltType type : types ) if ( columnType == type ) return ; throw new IllegalArgumentException ( "Column index " + columnIndex + " is type " + columnType ) ; }
Validates that type and columnIndex match and are valid .