public class Indexable extends Object implements Matchable
| Modifier and Type | Class and Description |
|---|---|
class |
Indexable.MatchItem |
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentHashMap<String,MatchRuleInterface> |
cacheRules |
protected Map<String,Document> |
indexCatalogCache |
protected Map<String,List<MatchProcDefinition>> |
indexProcDefs |
List<IIndex> |
matchIndexes |
protected Map<String,Map<String,MatchProcInterface>> |
matchProcs |
protected LinkedBlockingQueue<Document> |
publishQueue |
protected Map<String,Collection<String>> |
purposeTableColumns |
protected List<IRule> |
rules |
protected ISchemaMeta |
schDoc |
| Constructor and Description |
|---|
Indexable() |
| Modifier and Type | Method and Description |
|---|---|
static Document |
addHistoryRecord(Document existingDoc,
Document newValues,
String action,
String username) |
boolean |
addTask(Document mr) |
static Document |
addXRef(Document survivedRec,
Document deletedRec) |
protected Document |
applyInheritanceFrom(Document sourceRec,
Document targetRec) |
Document |
calcGoldenRec(Document original,
Document mergedrec,
String tableName) |
static Document |
calcGoldenRec(Document original,
Document mergedrec,
String tableName,
ISchemaMeta schDoc) |
MatchRecordInterface |
calculateScore(Document base,
Document comparitor,
boolean forSearch) |
protected static javax.ws.rs.core.Response |
doREST(String url,
String method,
javax.ws.rs.client.Entity payload,
Document replacements,
Document headers) |
boolean |
eid(Document mr) |
protected List<MatchProcDefinition> |
getCacheDefs(String indexName) |
protected Collection<String> |
getCachePurposeColumns(String purposeName,
String tableName) |
protected Collection<String> |
getMatchKeyCombinations(ArrayList<HashSet<String>> proctokens,
int startpos,
String keySoFar,
int deep) |
Collection<String> |
getMatchKeys(Document values,
ITable table,
IIndex index,
boolean isSearch) |
Collection<String> |
getMatchKeys(String value,
IIndex index) |
protected MatchRuleInterface |
getMatchRule(String hashKey,
int index) |
static List<Document> |
getXref(Document baseNode) |
void |
initialize(ISchemaMeta iSchemaMeta) |
void |
invoke(String type,
Document data) |
protected boolean |
isPattern(Object input) |
protected boolean |
isPrefixPattern(Object input) |
boolean |
link(Document mr) |
boolean |
match(Document node) |
boolean |
merge(Document mr) |
boolean |
mergeSort(Document mr) |
protected LinkedHashSet<Object> |
processKey(ArrayList<Collection> alternates,
int startpos,
Object keySoFar,
String indexMethod) |
void |
resolveTask(Document mr) |
protected void |
send(Document mr) |
protected Map<String,List<MatchProcDefinition>> indexProcDefs
protected Map<String,Map<String,MatchProcInterface>> matchProcs
protected ConcurrentHashMap<String,MatchRuleInterface> cacheRules
protected Map<String,Collection<String>> purposeTableColumns
protected ISchemaMeta schDoc
protected LinkedBlockingQueue<Document> publishQueue
public MatchRecordInterface calculateScore(Document base, Document comparitor, boolean forSearch) throws Exception
Exceptionpublic static Document addXRef(Document survivedRec, Document deletedRec) throws Exception
Exceptionpublic static Document addHistoryRecord(Document existingDoc, Document newValues, String action, String username) throws Exception
Exceptionpublic Document calcGoldenRec(Document original, Document mergedrec, String tableName)
public static Document calcGoldenRec(Document original, Document mergedrec, String tableName, ISchemaMeta schDoc)
protected MatchRuleInterface getMatchRule(String hashKey, int index)
public void initialize(ISchemaMeta iSchemaMeta)
protected boolean isPrefixPattern(Object input)
protected boolean isPattern(Object input)
protected LinkedHashSet<Object> processKey(ArrayList<Collection> alternates, int startpos, Object keySoFar, String indexMethod)
protected Collection<String> getMatchKeyCombinations(ArrayList<HashSet<String>> proctokens, int startpos, String keySoFar, int deep)
protected List<MatchProcDefinition> getCacheDefs(String indexName)
protected Collection<String> getCachePurposeColumns(String purposeName, String tableName)
public Collection<String> getMatchKeys(String value, IIndex index)
public Collection<String> getMatchKeys(Document values, ITable table, IIndex index, boolean isSearch)
protected Document applyInheritanceFrom(Document sourceRec, Document targetRec)
protected static javax.ws.rs.core.Response doREST(String url, String method, javax.ws.rs.client.Entity payload, Document replacements, Document headers)
public void resolveTask(Document mr)
resolveTask in interface MatchableCopyright © 2021. All rights reserved.