Configure Documents and Elements
masterTo perform fuzzy matching, you must structure your data into Document and Element objects using their respective builders.
// Example of building a Document with Elements
List<Document> documentList = Arrays.asList(input).stream().map(contact -> {
return new Document.Builder(contact[0]) // contact[0] is the unique Key
.addElement(new Element.Builder<String>()
.setValue(contact[1])
.setType(NAME)
.createElement())
.addElement(new Element.Builder<String>()
.setValue(contact[2])
.setType(ADDRESS)
.createElement())
.createDocument();
}).collect(Collectors.toList());