@Test(dataProvider = "getTableIndexProvider") public void testGetTableIndex(TableIndexes tabledIndexes, String fieldName, TableIndex expectedIndex) { Assert.assertEquals(tabledIndexes.getTableIndex(fieldName), expectedIndex); }
public TableIndex getTableIndex(String fieldName) { if(fieldName == null) return null; List<TableIndex> tableIndexSet = fieldToIndexSetMap.get(fieldName); return (tableIndexSet == null || tableIndexSet.size() == 0) ? null : tableIndexSet.get(0); }
TableIndexes { public TableIndex getTableIndex(String fieldName) { if(fieldName == null) return null; List<TableIndex> tableIndexSet = fieldToIndexSetMap.get(fieldName); return (tableIndexSet == null || tableIndexSet.size() == 0) ? null : tableIndexSet.get(0); } }
TableIndexes { public TableIndex getTableIndex(String fieldName) { if(fieldName == null) return null; List<TableIndex> tableIndexSet = fieldToIndexSetMap.get(fieldName); return (tableIndexSet == null || tableIndexSet.size() == 0) ? null : tableIndexSet.get(0); }  }
TableIndexes { public TableIndex getTableIndex(String fieldName) { if(fieldName == null) return null; List<TableIndex> tableIndexSet = fieldToIndexSetMap.get(fieldName); return (tableIndexSet == null || tableIndexSet.size() == 0) ? null : tableIndexSet.get(0); }  TableIndexes withPrimaryKey(String fieldName); TableIndexes withIndex(String indexName, String fieldName); TableIndexes withIndex(String indexName, String fieldName, String sortKey); TableIndexes withIndex(TableIndex tableIndex); boolean isPrimary(String fieldName); TableIndex getTableIndex(String fieldName); TableIndex getBestTableIndexMatch(List<String> fields); }
TableIndexes { public TableIndex getTableIndex(String fieldName) { if(fieldName == null) return null; List<TableIndex> tableIndexSet = fieldToIndexSetMap.get(fieldName); return (tableIndexSet == null || tableIndexSet.size() == 0) ? null : tableIndexSet.get(0); }  TableIndexes withPrimaryKey(String fieldName); TableIndexes withIndex(String indexName, String fieldName); TableIndexes withIndex(String indexName, String fieldName, String sortKey); TableIndexes withIndex(TableIndex tableIndex); boolean isPrimary(String fieldName); TableIndex getTableIndex(String fieldName); TableIndex getBestTableIndexMatch(List<String> fields);  }