|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.automed.util.graph.impl.Graph
uk.ac.ic.doc.automed.util.graph.impl.DataGraph
uk.ac.ic.doc.automed.util.graph.impl.HDMGraph
uk.ac.ic.doc.automed.p2p.qproc.model.ObjectMapping
public class ObjectMapping
Field Summary | |
---|---|
protected static double |
EPSILON
|
static int[][] |
FD_MATCHDATA
Instance mapping between two peer locations |
static double |
LBOUND_RANGERANK
|
protected static double |
MIN_RANGERANK
The minimum krange rank used to assign the mappings who do not have any kranges. |
protected java.util.Map |
scoverage
|
private static long |
serialVersionUID
|
private HDMObject |
sourceObj
|
private HDMObject |
targetObj
|
protected int |
type
|
static int |
TYPE_DIRECT
source and target objects are the same |
static int |
TYPE_FUNCTIONAL_DEPENDENCE
matching in which one object is a key and the other is an object in the same schema as the key object (i.e. |
static int |
TYPE_INCLUSION
matching through key reference (e.g. |
static int |
TYPE_NAME
matching of the names between two objects in two different schemas in which at least one object is not a key object (e.g. |
static int |
TYPE_NAME_KEY
matching in which two key objects have their names match with each other but there are no constraints that exist between them (e.g. |
static int |
TYPE_TRANSITIVE
|
static int |
TYPE_TRANSITIVE_CANDIDATE_KEY
a transitive key mapping whose target and/or source objects are candidate keys |
static int |
TYPE_TRANSITIVE_KEY
matching through transitive key reference (e.g. |
static int |
TYPE_TRANSITIVE_KEY_ALT
a transitive mapping in which the source and/or target is a candidate key whose extents contain auto-generated values |
static int |
TYPE_TRANSITIVE_NAME
transitive name mapping |
private static java.lang.String[] |
typeAcronyms
|
private static java.lang.String[] |
typeNames
Check whether this mapping is between two key constraints of the source and the target objects |
Fields inherited from class uk.ac.ic.doc.automed.util.graph.impl.HDMGraph |
---|
CONSTRAINT_CANDIDATE_KEY, CONSTRAINT_FK_KEY, CONSTRAINT_MANDATORY, CONSTRAINT_PK_KEY, CONSTRAINT_REFLEXIVE, CONSTRAINT_UNIQUE |
Fields inherited from class uk.ac.ic.doc.automed.util.graph.impl.DataGraph |
---|
constraint, constraints, edge, node, propObjs |
Fields inherited from class uk.ac.ic.doc.automed.util.graph.impl.Graph |
---|
EDGE, idCounter, LEFT_BRACE, METADATA, NEW_LINE, RIGHT_ARROW, RIGHT_BRACE, SPACE, VERTICAL_BAR |
Constructor Summary | |
---|---|
|
ObjectMapping()
|
protected |
ObjectMapping(java.lang.String schema)
|
|
ObjectMapping(java.lang.String peer,
java.lang.String schema)
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object another)
Compare with another mapping on the basis of the rank |
int |
getLength()
Return the number of edges and semantic constraints in the graph. |
java.util.Map |
getSCoverage()
Extract s-coverage of this mappings from the source and target objects. |
SchemeInfo |
getSourceAsSchemeInfo()
|
HDMObject |
getSourceObj()
|
java.lang.String |
getSourcePeer()
|
java.lang.String |
getSourcePrefix()
|
java.lang.String |
getSourceSchema()
|
java.lang.String |
getSourceSchemeDef()
|
java.lang.String |
getSourceSchemeDef(boolean full)
|
java.lang.String |
getSourceSchemeName()
Return only the scheme definition (without the peer, schema, ... |
int |
getSourceSchemePos()
Return the scheme position of the source object. |
SchemeInfo |
getTargetAsSchemeInfo()
|
HDMObject |
getTargetObj()
|
java.lang.String |
getTargetPeer()
|
java.lang.String |
getTargetPrefix()
|
java.lang.String |
getTargetSchema()
|
java.lang.String |
getTargetSchemeDef()
|
java.lang.String |
getTargetSchemeDef(boolean full)
|
java.lang.String |
getTargetSchemeName()
Return only the scheme definition (without the peer, schema, ... |
int |
getTargetSchemePos()
Return the scheme position of the source object. |
int |
getType()
Determines the type of this mapping |
java.lang.String |
getTypeName()
Return full name of the mapping type |
java.lang.String |
getTypeName(boolean acronym)
|
boolean |
isSameSchema()
Check that source and target objects come from the same schema. |
boolean |
isSameSchemaWith(ObjectMapping m)
Check that the source and target objects of this schema and of the input schema come from the same schema AND that these schemas are the same. |
private boolean |
isSemanticConstraint(SchemaObjectI c)
Returns true if a constraint object is a semantic constraint. |
boolean |
isTransitiveType()
Returns true if this mapping represents one of the transitive mapping types. |
static boolean |
isTransitiveType(int type)
Returns true if the specified type constant represents one of the transitive mapping types. |
boolean |
isType(int toCheck)
|
void |
setSourceObj(HDMObject srcObj)
|
void |
setTargetObj(HDMObject tgtObj)
|
java.lang.String |
toString()
|
Methods inherited from class uk.ac.ic.doc.automed.util.graph.impl.HDMGraph |
---|
addConstraintObject, addConstraintObject, addEdgeObject, addEdgeObject, addK2ONode, addKNode, addNodeObject, addObject, containsConstraint, containsEdge, containsKNode, containsNode, containsObject, containsObject, createObject, createSchemaObject, equals, getDependentKeyEdge, getDependentObjects, getDependentObjects, getDependentSchemaObjects, getDependentSchemaObjects, getHDMObject, getK2Nodes, getK2O, getK2O, getK2OEdge, getK2OMapEdge, getK2OMapPos, getKFromO, getKFromO, getLabel, getModel, getName, getObject, getObjects, getObjects, getPeer, getPropertyObjects, getRank, getRankFormatted, getSchemaName, getSchemeNamesString, isEmpty, isSameSchema, setProperty, setRank, setSchemaName |
Methods inherited from class uk.ac.ic.doc.automed.util.graph.impl.DataGraph |
---|
addConstraint, clear, containsConstraint, copy, copy, getConstraints, getNodeObject, getObject, remove, removeConstraint |
Methods inherited from class uk.ac.ic.doc.automed.util.graph.impl.Graph |
---|
addEdge, addMetadata, addNode, changeDirection, contains, containsEdge, containsEdge, containsEdge, containsNode, containsNode, edgeIterator, finalize, firstEdge, firstInEdge, firstNode, firstOutEdge, getAdjEdges, getAdjNodes, getEdge, getEdgeByID, getEdges, getID, getInEdges, getMetadata, getMetadata, getNode, getNode, getNodeByID, getNodeCount, getNodes, getOutDegree, getOutEdges, getOutNodes, getUndirectedEdge, getUndirectedEdge, hasMetadata, isFirstNode, lastEdge, lastNode, nodeIterator, numberOfEdges, numberOfNodes, predNode, removeEdge, removeEdge, removeNode, removeNode, reset, source, succNode, target |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
protected int type
private HDMObject sourceObj
private HDMObject targetObj
protected transient java.util.Map scoverage
private static final java.lang.String[] typeNames
private static final java.lang.String[] typeAcronyms
public static final int TYPE_DIRECT
public static final int TYPE_FUNCTIONAL_DEPENDENCE
public static final int TYPE_INCLUSION
public static final int TYPE_TRANSITIVE_CANDIDATE_KEY
public static final int TYPE_TRANSITIVE_KEY
public static final int TYPE_TRANSITIVE
public static final int TYPE_TRANSITIVE_KEY_ALT
public static final int TYPE_NAME_KEY
public static final int TYPE_NAME
public static final int TYPE_TRANSITIVE_NAME
public static final int[][] FD_MATCHDATA
public static final double LBOUND_RANGERANK
protected static final double EPSILON
protected static final double MIN_RANGERANK
Constructor Detail |
---|
public ObjectMapping()
protected ObjectMapping(java.lang.String schema)
public ObjectMapping(java.lang.String peer, java.lang.String schema)
Method Detail |
---|
public void setSourceObj(HDMObject srcObj)
public HDMObject getSourceObj()
public void setTargetObj(HDMObject tgtObj)
public HDMObject getTargetObj()
public int getType()
public int getLength()
getLength
in class HDMGraph
public int getSourceSchemePos()
public SchemeInfo getSourceAsSchemeInfo()
public int getTargetSchemePos()
public java.lang.String getSourceSchemeName()
public java.lang.String getTargetSchemeName()
public SchemeInfo getTargetAsSchemeInfo()
public java.lang.String getSourcePrefix()
public java.lang.String getTargetPrefix()
public java.lang.String getSourceSchema()
public java.lang.String getTargetSchema()
public java.lang.String getSourcePeer()
public java.lang.String getTargetPeer()
public java.lang.String getSourceSchemeDef()
public java.lang.String getTargetSchemeDef()
public java.lang.String getSourceSchemeDef(boolean full)
public java.lang.String getTargetSchemeDef(boolean full)
public java.lang.String getTypeName()
public java.lang.String getTypeName(boolean acronym)
public boolean isSameSchema()
g
-
public boolean isSameSchemaWith(ObjectMapping m)
g
-
private boolean isSemanticConstraint(SchemaObjectI c)
c
-
public boolean isTransitiveType()
type
-
public static boolean isTransitiveType(int type)
type
-
public boolean isType(int toCheck)
public java.util.Map getSCoverage()
public int compareTo(java.lang.Object another)
compareTo
in interface java.lang.Comparable
another
-
public java.lang.String toString()
toString
in class HDMGraph
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |