use of org.openntf.domino.types.BigString in project org.openntf.domino by OpenNTF.
the class IndexStore method saveRichTextLocationMap.
@Override
public void saveRichTextLocationMap(final Object mapKey, final Map<CharSequence, Map<CharSequence, CharSequence>> fullMap, final DocumentScanner scanner, final ScanStatus status, final long doccount, final long docstoprocess) {
setLastIndexDate(mapKey, scanner.getLastDocModDate(), status, doccount, docstoprocess);
Set<CharSequence> keySet = fullMap.keySet();
if (keySet.size() > 0) {
// System.out.println("TEMP DEBUG saving an RT location map of size " + keySet.size());
for (CharSequence cis : keySet) {
Map<CharSequence, CharSequence> tlValue = fullMap.get(cis);
for (CharSequence itemName : tlValue.keySet()) {
String key = RICH_TEXT_ID_PREFIX + cis.toString() + "$" + itemName.toString();
// System.out.println("TEMP DEBUG RT Location Map processing key " + key);
RichTextReference rtV = (RichTextReference) getGraph().addVertex(key.toLowerCase(), RichTextReference.class);
// if (rtV == null) {
// rtV = (RichTextReference) getGraph().addVertex(key.toLowerCase(), RichTextReference.class);
// }
rtV.setItemName(itemName.toString());
rtV.setSourceMetaid(cis.toString());
rtV.setTokenProcessed(false);
CharSequence rtText = tlValue.get(itemName);
BigString rtBigString = new BigString(rtText.toString());
rtV.setText(rtBigString);
RichTextReference.Utils.processContent(rtV, getGraph(), scanner.isCaseSensitive(), false);
}
}
} else {
// System.out.println("DEBUG: keyset was empty for index tokens");
}
}
Aggregations