|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.ethz.mxquery.datamodel.DeweyIdentifier
public class DeweyIdentifier
Constructor Summary | |
---|---|
DeweyIdentifier(Identifier lastID,
int level,
Source source)
|
|
DeweyIdentifier(int[] dewey_id2,
int level,
Source store2)
|
Method Summary | |
---|---|
int |
compare(Identifier toCompare)
Compares this token identifier with an other one. |
int |
comparePosition(Identifier toCompare)
|
static Identifier |
createIdentifier(Identifier last_identifier,
int level,
Source store)
Creates an identifier for a particular store at a level starting from a previous identifier |
static Identifier[] |
createInsertIdentifiers(Identifier leftBoundId,
Identifier rightBoundId,
int number,
Source source,
int[] levels)
Creates Identifiers for Tokens that are between the ids leftBoundId and rightBoundId . |
void |
dumpID()
|
int[] |
getDeweyId()
returns the Dewey Id of this |
int |
getDeweyLevel()
returns the length (level) of this |
Source |
getStore()
returns the source of the identifier |
boolean |
isAncestorOf(DeweyIdentifier did)
returns true if this is ancestor of did |
boolean |
isChildOf(DeweyIdentifier did)
returns true if this is child (direct descendant) of did |
boolean |
isDescendantOf(DeweyIdentifier did)
returns true if this is descendant of did |
boolean |
isParentOf(DeweyIdentifier did)
returns true if this is parent (direct ancestor) of did |
boolean |
isSmallerThan(DeweyIdentifier did)
returns true if this is smaller than did (order) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeweyIdentifier(Identifier lastID, int level, Source source)
public DeweyIdentifier(int[] dewey_id2, int level, Source store2)
Method Detail |
---|
public int compare(Identifier toCompare)
compare
in interface Identifier
toCompare
- another Identifier to compare
identifier
is smaller, 1 if
identifier
is bigger, and -2 if the two Identifier
do not belong to the same data source.public int comparePosition(Identifier toCompare)
public Source getStore()
getStore
in interface Identifier
public boolean isAncestorOf(DeweyIdentifier did)
public boolean isParentOf(DeweyIdentifier did)
public boolean isDescendantOf(DeweyIdentifier did)
public boolean isChildOf(DeweyIdentifier did)
public boolean isSmallerThan(DeweyIdentifier did)
public int[] getDeweyId()
public int getDeweyLevel()
public static Identifier createIdentifier(Identifier last_identifier, int level, Source store)
last_identifier
- level
- store
-
public static Identifier[] createInsertIdentifiers(Identifier leftBoundId, Identifier rightBoundId, int number, Source source, int[] levels) throws MXQueryException
leftBoundId
and rightBoundId
.
leftBoundId
- left boundrightBoundId
- right boundnumber
- number of ids that the method must producesource
- data source of the newly created ids
MXQueryException
public void dumpID()
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |