V
- public class PartlyInlineURIIV<V extends BigdataURI> extends AbstractNonInlineExtensionIVWithDelegateIV<V,org.openrdf.model.URI>
flags
Constructor and Description |
---|
PartlyInlineURIIV(AbstractLiteralIV<BigdataLiteral,?> delegate,
IV<?,?> namespace) |
Modifier and Type | Method and Description |
---|---|
IV<V,org.openrdf.model.URI> |
clone(boolean clearCache)
Return a copy of this
IV . |
byte |
getExtensionByte()
Return the extension byte for this type of non-inline IV.
|
String |
getLocalName()
Implements
URI.getLocalName() . |
String |
toString()
Human readable representation includes the namespace
IV and the
localName . |
_compareTo, byteLength, equals, getDelegate, getExtensionIV, hashCode
asValue, booleanValue, byteValue, calendarValue, decimalValue, doubleValue, floatValue, getDatatype, getID, getInlineValue, getLabel, getLanguage, getNamespace, integerValue, intValue, isInline, longValue, needsMaterialization, shortValue, stringValue
compareTo, encode, flags, getDTE, getDTE, getDTEX, getInternalValueTypeEnum, getValue, getValueCache, getVTE, getVTE, hasValue, isBigNumeric, isBNode, isExtension, isExtension, isFixedNumeric, isFloatingPointNumeric, isInline, isLiteral, isNullIV, isNumeric, isResource, isSignedNumeric, isStatement, isUnsignedNumeric, isURI, isVocabulary, setValue, toFlags
public PartlyInlineURIIV(AbstractLiteralIV<BigdataLiteral,?> delegate, IV<?,?> namespace)
public IV<V,org.openrdf.model.URI> clone(boolean clearCache)
IV
.
Note: This method exists to defeat the hard reference from the IV
to the cached BigdataValue
in order to avoid a memory leak when
the IV
is used as the key in a weak value cache whose value is
the BigdataValue
. Therefore, certain IV
implementations
MAY return this when they are used for limited collections. The
vocabulary IVs are the primary example. For the same reason, we do not
need to recursively break the link from the IV
to the
BigdataValue
for IV
s which embed other IV
s.
Note: The extensionIV and delegateIV are NOT cloned. The rationale is
that we are only cloning to break the hard reference from the IV
to to cached value. If that needs to be done for the extensionIV and
delegateIV, then it will be done separately for those objects when they
are inserted into the termsCache.
clearCache
- When true
the cached reference (if any) will NOT
be set on the copy.(Thread-local
cache combined with unbounded thread pools causes effective memory
leak)
public String toString()
IV
and the
localName
.public final byte getExtensionByte()
AbstractNonInlineExtensionIV
getExtensionByte
in class AbstractNonInlineExtensionIV<V extends BigdataURI,org.openrdf.model.URI>
INonInlineExtensionCodes
public String getLocalName()
URI.getLocalName()
.
We can use the inline delegate for this.
getLocalName
in interface org.openrdf.model.URI
getLocalName
in class AbstractNonInlineIV<V extends BigdataURI,org.openrdf.model.URI>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.