public interface EdgeQuery extends OsidRelationshipQuery
This is the query for searching edges. Each method match specifies an
AND
term while multiple invocations of the same method
produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearBiDirectionalTerms()
Clears the directional terms.
|
void |
clearCostTerms()
Clears the cost terms.
|
void |
clearDestinationNodeIdTerms()
Clears the related node
Id terms. |
void |
clearDestinationNodeTerms()
Clears the related node terms.
|
void |
clearDirectionalTerms()
Clears the directional terms.
|
void |
clearDistanceTerms()
Clears the distance terms.
|
void |
clearGraphIdTerms()
Clears the graph
Id terms. |
void |
clearGraphTerms()
Clears the graph terms.
|
void |
clearSameNodeTerms()
Clears the same node terms.
|
void |
clearSourceNodeIdTerms()
Clears the node
Id terms. |
void |
clearSourceNodeTerms()
Clears the node terms.
|
NodeQuery |
getDestinationNodeQuery()
Gets the query for a related node.
|
EdgeQueryRecord |
getEdgeQueryRecord(Type edgeRecordType)
Gets the edge query record corresponding to the given
Edge
record Type. |
GraphQuery |
getGraphQuery()
Gets the query for a graph.
|
NodeQuery |
getSourceNodeQuery()
Gets the query for a node.
|
void |
matchAnyCost(boolean match)
Matches edges that has any cost assigned.
|
void |
matchAnyDistance(boolean match)
Matches edges that has any distance assigned.
|
void |
matchBiDirectional(boolean match)
Matches bi-directional edges.
|
void |
matchCost(java.math.BigDecimal from,
java.math.BigDecimal to,
boolean match)
Matches edges that have the specified cost inclusive.
|
void |
matchDestinationNodeId(Id nodeId,
boolean match)
Sets the related node
Id for this query to match edges
assigned to nodes. |
void |
matchDirectional(boolean match)
Matches directional edges.
|
void |
matchDistance(java.math.BigDecimal from,
java.math.BigDecimal to,
boolean match)
Matches edges that have the specified distance inclusive.
|
void |
matchGraphId(Id graphId,
boolean match)
Sets the graph
Id for this query to match edges
assigned to graphs. |
void |
matchSameNode(boolean match)
Matches edges between the same node.
|
void |
matchSourceNodeId(Id nodeId,
boolean match)
Sets the node
Id for this query to match edges assigned
to nodes. |
boolean |
supportsDestinationNodeQuery()
Tests if a
NodeQuery is available. |
boolean |
supportsGraphQuery()
Tests if a
GraphQuery is available. |
boolean |
supportsSourceNodeQuery()
Tests if a
NodeQuery is available. |
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQuery
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDate
void matchSourceNodeId(Id nodeId, boolean match)
Id
for this query to match edges assigned
to nodes.nodeId
- the node Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- nodeId
is
null
mandatory
- This method must be implemented. void clearSourceNodeIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsSourceNodeQuery()
NodeQuery
is available. true
if a node query is available, false
otherwisemandatory
- This method must be implemented. NodeQuery getSourceNodeQuery()
OR
term.UnimplementedException
-
supportsSourceNodeQuery()
is false
optional
- This method must be implemented if
supportsSourceNodeQuery()
is true.
void clearSourceNodeTerms()
mandatory
- This method must be implemented. void matchDestinationNodeId(Id nodeId, boolean match)
Id
for this query to match edges
assigned to nodes.nodeId
- the node Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- nodeId
is
null
mandatory
- This method must be implemented. void clearDestinationNodeIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsDestinationNodeQuery()
NodeQuery
is available. true
if a node query is available, false
otherwisemandatory
- This method must be implemented. NodeQuery getDestinationNodeQuery()
OR
term.UnimplementedException
-
supportsDestinationNodeQuery()
is false
optional
- This method must be implemented if
supportsDestinationNodeQuery()
is true.
void clearDestinationNodeTerms()
mandatory
- This method must be implemented. void matchSameNode(boolean match)
match
- true
for a positive match, false
for a negative matchmandatory
- This method must be implemented. void clearSameNodeTerms()
mandatory
- This method must be implemented. void matchDirectional(boolean match)
match
- true
to match directional edges,
false
otherwisemandatory
- This method must be implemented. void clearDirectionalTerms()
mandatory
- This method must be implemented. void matchBiDirectional(boolean match)
match
- true
to match bi-directional edges,
false
to match uni-directional edgesmandatory
- This method must be implemented. void clearBiDirectionalTerms()
mandatory
- This method must be implemented. void matchCost(java.math.BigDecimal from, java.math.BigDecimal to, boolean match)
from
- starting rangeto
- ending rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- to
is less
than from
mandatory
- This method must be implemented. void matchAnyCost(boolean match)
match
- true
to match edges with any cost,
false
to match edges with no cost assignedmandatory
- This method must be implemented. void clearCostTerms()
mandatory
- This method must be implemented. void matchDistance(java.math.BigDecimal from, java.math.BigDecimal to, boolean match)
from
- starting rangeto
- ending rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- to
is less
than from
mandatory
- This method must be implemented. void matchAnyDistance(boolean match)
match
- true
to match edges with any distance,
false
to match edges with no distance assignedmandatory
- This method must be implemented. void clearDistanceTerms()
mandatory
- This method must be implemented. void matchGraphId(Id graphId, boolean match)
Id
for this query to match edges
assigned to graphs.graphId
- the graph Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- graphId
is
null
mandatory
- This method must be implemented. void clearGraphIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsGraphQuery()
GraphQuery
is available. true
if a graph query is available,
false
otherwisemandatory
- This method must be implemented. GraphQuery getGraphQuery()
OR
term.UnimplementedException
- supportsGraphQuery()
is false
optional
- This method must be implemented if
supportsGraphQuery()
is true.
void clearGraphTerms()
mandatory
- This method must be implemented. EdgeQueryRecord getEdgeQueryRecord(Type edgeRecordType) throws OperationFailedException
Edge
record Type.
Multiple record retrievals produce
a nested OR
term.edgeRecordType
- an edge record typeNullArgumentException
- edgeRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(edgeRecordType)
is false
mandatory
- This method must be implemented.