writeTableToTableIndex
This method saves the distinct values of every of the table's columns to the TableIndex
It does the following steps:
1. loop through all the columns in the table
1.1. loop through all the distinct values in this column
1.1.1. save a document with following values to the TableIndex: id, tableHeader, columnHeader, columnDataType, tableCardinality, columnDistinctValues, valueMultiplicity, value, fullTablePath, isPrimaryKey, originalValue