|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.common.rdb.layout.NodeType
public class NodeType
Provides allocation and conversion between RDF Node types and ids used by the node centric layout to reference them. Supports the various RDF Node types and subtypes: URI, LITERAL, Blank, Language and Datatype. Intended to be an internal component of the node layout package.
CompositeNodeLayout| Field Summary | |
|---|---|
static NodeType |
BLANK
Blank node type |
static int |
BLANK_TYPE
Blank node type mask |
static java.lang.String |
blankSequence
Sequence name for blank nodes |
static NodeType |
DATATYPE
Datatype node type |
static int |
DATATYPE_TYPE
Datatype node type mask |
static java.lang.String |
datatypeSequence
Sequence name for datatype strings |
static NodeType |
LANGUAGE
Language node type |
static int |
LANGUAGE_TYPE
Language node type mask |
static java.lang.String |
languageSequence
Sequence name for language strings |
static NodeType |
LITERAL
Literal node type |
static int |
LITERAL_TYPE
Literal node type mask |
static java.lang.String |
literalSequence
Sequence name for literals |
static NodeType |
LONG_LITERAL
Long Literal node type |
static int |
LONG_LITERAL_TYPE
Long Literal node type mask |
static NodeType |
LONG_URI
Long URI node type |
static int |
LONG_URI_TYPE
Long URI node type mask |
static NodeType |
LONG_XML
Long XML node type |
static int |
LONG_XML_TYPE
Long XML node type mask |
static java.lang.String |
longLiteralSequence
Sequence name for long literals |
static java.lang.String |
longUriSequence
Sequence name for long URIS |
static java.lang.String |
longXmlSequence
Sequence name for long XML literals |
static java.lang.String |
sequencePrefix
Prefix for the names of the sequences |
static int |
typeCount
Number of types |
static NodeType |
URI
URI node type |
static int |
URI_TYPE
URI node type mask |
static java.lang.String |
uriSequence
Sequence name for URIs |
static NodeType |
XML
XML node type |
static int |
XML_TYPE
XML node type mask |
static java.lang.String |
xmlSequence
Sequence name for XML literals |
| Method Summary | |
|---|---|
static NodeType |
getById(long id)
Get the NodeType for the given node ID |
static NodeType |
getLongLayout(org.openrdf.model.Value n)
Get the long NodeType for this Value |
java.lang.String |
getName(java.lang.String containerName)
Get a table name consisting of the suffix appended to the end of the container name |
int |
getRange()
Get the id of NodeType out of the 16 possible type ids |
static NodeType |
getShortLayout(org.openrdf.model.Value n)
Get the regular NodeType for this Value |
java.lang.String |
getSuffix()
Get the suffix which is appended to the end of the container name to generate the table name for this type |
static long |
getTypeId(long id)
Get the type id for the given node ID |
long |
getTypeMask()
The typeMake for this nodeType |
java.lang.String |
getValue()
Get the string representation of NodeType |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String sequencePrefix
public static final java.lang.String blankSequence
public static final java.lang.String uriSequence
public static final java.lang.String literalSequence
public static final java.lang.String xmlSequence
public static final java.lang.String longLiteralSequence
public static final java.lang.String longXmlSequence
public static final java.lang.String longUriSequence
public static final java.lang.String datatypeSequence
public static final java.lang.String languageSequence
public static final int typeCount
public static final int BLANK_TYPE
public static final int URI_TYPE
public static final int LITERAL_TYPE
public static final int XML_TYPE
public static final int LONG_LITERAL_TYPE
public static final int LONG_XML_TYPE
public static final int LONG_URI_TYPE
public static final int DATATYPE_TYPE
public static final int LANGUAGE_TYPE
public static final NodeType BLANK
public static final NodeType URI
public static final NodeType LITERAL
public static final NodeType XML
public static final NodeType LONG_LITERAL
public static final NodeType LONG_XML
public static final NodeType LONG_URI
public static final NodeType DATATYPE
public static final NodeType LANGUAGE
| Method Detail |
|---|
public static long getTypeId(long id)
id - node ID to lookup
public static NodeType getById(long id)
id - node ID
public static NodeType getShortLayout(org.openrdf.model.Value n)
n - value for which to retrieve NodeType
public static NodeType getLongLayout(org.openrdf.model.Value n)
n - value for which to retrieve NodeType
public java.lang.String getValue()
public java.lang.String getSuffix()
public java.lang.String getName(java.lang.String containerName)
containerName - name of container
public java.lang.String toString()
toString in class java.lang.Objectpublic int getRange()
public long getTypeMask()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||