Class CorruptIRIOrBNode
- java.lang.Object
-
- org.eclipse.rdf4j.sail.nativerdf.model.CorruptValue
-
- org.eclipse.rdf4j.sail.nativerdf.model.CorruptIRIOrBNode
-
- All Implemented Interfaces:
Serializable
,BNode
,IRI
,Resource
,Value
,NativeValue
public class CorruptIRIOrBNode extends CorruptValue implements IRI, BNode
CorruptIRIOrBNode is used when a NativeValue cannot be read from the ValueStore and if soft failure is enabled- Author:
- HÃ¥vard M. Ottestad
- See Also:
.
, Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.eclipse.rdf4j.sail.nativerdf.model.NativeValue
UNKNOWN_ID
-
-
Constructor Summary
Constructors Constructor Description CorruptIRIOrBNode(ValueStoreRevision revision, int internalID, byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Compares this IRI to another object.String
getID()
Retrieves this blank node's identifier.String
getLocalName()
Gets the local name part of this IRI.String
getNamespace()
Gets the namespace part of this IRI.String
stringValue()
Returns the String-value of a Value object.String
toString()
-
Methods inherited from class org.eclipse.rdf4j.sail.nativerdf.model.CorruptValue
getData, getInternalID, getValueStoreRevision, setInternalID
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.model.Resource
isResource
-
-
-
-
Constructor Detail
-
CorruptIRIOrBNode
public CorruptIRIOrBNode(ValueStoreRevision revision, int internalID, byte[] data)
-
-
Method Detail
-
stringValue
public String stringValue()
Description copied from interface:Value
Returns the String-value of a Value object. This returns either aLiteral
's label, aIRI
's URI or aBNode
's ID.- Specified by:
stringValue
in interfaceValue
- Overrides:
stringValue
in classCorruptValue
-
getNamespace
public String getNamespace()
Description copied from interface:IRI
Gets the namespace part of this IRI.The namespace is defined as per the algorithm described in the class documentation.
- Specified by:
getNamespace
in interfaceIRI
- Returns:
- the namespace of this IRI
-
getLocalName
public String getLocalName()
Description copied from interface:IRI
Gets the local name part of this IRI.The local name is defined as per the algorithm described in the class documentation.
- Specified by:
getLocalName
in interfaceIRI
- Returns:
- the local name of this IRI
-
getID
public String getID()
Description copied from interface:BNode
Retrieves this blank node's identifier.
-
equals
public boolean equals(Object o)
Description copied from interface:IRI
Compares this IRI to another object.- Specified by:
equals
in interfaceBNode
- Specified by:
equals
in interfaceIRI
- Overrides:
equals
in classCorruptValue
- Parameters:
o
- the object to compare this IRI to- Returns:
true
, if the other object is an instance ofIRI
and their string values are equal;false
, otherwise
-
-