public final class TripleIDInt extends Object implements Comparable<TripleIDInt>
| Constructor and Description |
|---|
TripleIDInt()
Basic constructor
|
TripleIDInt(int subject,
int predicate,
int object)
Constructor
|
TripleIDInt(long subject,
long predicate,
long object) |
TripleIDInt(TripleID other) |
TripleIDInt(TripleIDInt other)
Build a TripleID as a copy of another one.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assign(TripleIDInt replacement) |
TripleID |
asTripleID() |
void |
clear()
Set all components to zero.
|
int |
compareTo(TripleIDInt other)
Compare TripleID to another one using SPO Order.
|
boolean |
equals(TripleIDInt other) |
int |
getObject() |
String |
getPatternString()
Get the pattern of the triple as String, such as "SP?".
|
int |
getPredicate() |
int |
getSubject() |
boolean |
isEmpty()
Check whether all the components of the triple are empty (zero).
|
boolean |
isValid()
Check whether none of the components of the triple are empty.
|
boolean |
match(TripleID pattern)
Check whether this triple matches a pattern of TripleID.
|
void |
setAll(int subject,
int predicate,
int object)
Replace all components of a TripleID at once.
|
void |
setObject(int object) |
void |
setPredicate(int predicate) |
void |
setSubject(int subject) |
static int |
size()
size of one TripleID in memory
|
String |
toString() |
public TripleIDInt()
public TripleIDInt(int subject,
int predicate,
int object)
subject - The subjectpredicate - The predicateobject - The objectpublic TripleIDInt(long subject,
long predicate,
long object)
public TripleIDInt(TripleIDInt other)
other - public TripleIDInt(TripleID other)
public int getSubject()
public void setSubject(int subject)
subject - the subject to setpublic int getObject()
public void setObject(int object)
object - the object to setpublic int getPredicate()
public void setPredicate(int predicate)
predicate - the predicate to setpublic void setAll(int subject,
int predicate,
int object)
subject - predicate - object - public void assign(TripleIDInt replacement)
public void clear()
public boolean equals(TripleIDInt other)
public int compareTo(TripleIDInt other)
TripleStringComparatorcompareTo in interface Comparable<TripleIDInt>public boolean match(TripleID pattern)
pattern - The pattern to match againstpublic boolean isEmpty()
public boolean isValid()
public String getPatternString()
public TripleID asTripleID()
public static int size()
Copyright © 2018 DataWeb Research. All rights reserved.