Class CorruptIRI
java.lang.Object
org.eclipse.rdf4j.sail.nativerdf.model.CorruptValue
org.eclipse.rdf4j.sail.nativerdf.model.CorruptIRI
- All Implemented Interfaces:
Serializable, IRI, Resource, Value, NativeValue
CorruptIRI is used when a NativeValue cannot be read from the ValueStore and if soft failure is enabled
- Author:
- HÃ¥vard M. Ottestad
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Value
Value.Type -
Field Summary
Fields inherited from interface NativeValue
UNKNOWN_ID -
Constructor Summary
ConstructorsConstructorDescriptionCorruptIRI(ValueStoreRevision revision, int internalID, String namespace, byte[] data) -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this IRI to another object.Gets the local name part of this IRI.Gets the namespace part of this IRI.Returns the String-value of a Value object.toString()Methods inherited from class CorruptValue
getData, getInternalID, getRecovered, getValueStoreRevision, setInternalID, setRecoveredModifier and TypeMethodDescriptionbyte[]getData()Returns the bytes that were read from the ValueStore for this value's internalID.intGets the ID that is used in the native store for this Value.Returns a recovered value if one was attached; may be null if recovery failed.Gets the revision of the value store that created this value.voidsetInternalID(int internalID, ValueStoreRevision revision) Sets the ID that is used for this value in a specific revision of the value store.voidsetRecovered(NativeValue recovered) Set a recovered value corresponding to this corrupt entry.Methods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IRI
getType, hashCode, isIRIModifier and TypeMethodDescriptiondefault Value.TypegetType()inthashCode()Computes the hash code of this IRI.default booleanisIRI()Check if the object is an instance of the given type.Methods inherited from interface Resource
isResourceModifier and TypeMethodDescriptiondefault booleanCheck if the object is an instance of the given type.
-
Constructor Details
-
CorruptIRI
-
-
Method Details
-
toString
-
stringValue
Description copied from interface:ValueReturns the String-value of a Value object. This returns either aLiteral's label, aIRI's URI or aBNode's ID.- Specified by:
stringValuein interfaceValue- Overrides:
stringValuein classCorruptValue
-
getNamespace
Description copied from interface:IRIGets the namespace part of this IRI.The namespace is defined as per the algorithm described in the class documentation.
- Specified by:
getNamespacein interfaceIRI- Returns:
- the namespace of this IRI
-
getLocalName
Description copied from interface:IRIGets the local name part of this IRI.The local name is defined as per the algorithm described in the class documentation.
- Specified by:
getLocalNamein interfaceIRI- Returns:
- the local name of this IRI
-
equals
Description copied from interface:IRICompares this IRI to another object.- Specified by:
equalsin interfaceIRI- Overrides:
equalsin classCorruptValue- Parameters:
o- the object to compare this IRI to- Returns:
true, if the other object is an instance ofIRIand their string values are equal;false, otherwise
-