V
- public class PartlyInlineTypedLiteralIV<V extends BigdataLiteral> extends AbstractNonInlineExtensionIVWithDelegateIV<V,org.openrdf.model.Literal> implements org.openrdf.model.Literal
flags
Constructor and Description |
---|
PartlyInlineTypedLiteralIV(AbstractLiteralIV<BigdataLiteral,?> delegate,
IV<?,?> datatype) |
Modifier and Type | Method and Description |
---|---|
boolean |
booleanValue()
Implements
Literal.booleanValue() . |
byte |
byteValue()
Implements
Literal.byteValue() . |
XMLGregorianCalendar |
calendarValue()
Implements
Literal.calendarValue() . |
IV<V,org.openrdf.model.Literal> |
clone(boolean clearCache)
Return a copy of this
IV . |
BigDecimal |
decimalValue()
Implements
Literal.decimalValue() . |
double |
doubleValue()
Implements
Literal.doubleValue() . |
float |
floatValue()
Implements
Literal.floatValue() . |
byte |
getExtensionByte()
Return the extension byte for this type of non-inline IV.
|
String |
getLabel()
Implements
Literal.getLabel() . |
BigInteger |
integerValue()
Implements
Literal.integerValue() . |
int |
intValue()
Implements
Literal.intValue() . |
long |
longValue()
Implements
Literal.longValue() . |
short |
shortValue()
Implements
Literal.shortValue() . |
String |
stringValue()
Implements
Value.stringValue() . |
String |
toString()
Human readable representation includes the datatype
IV and
the label . |
_compareTo, byteLength, equals, getDelegate, getExtensionIV, hashCode
asValue, getDatatype, getID, getInlineValue, getLanguage, getLocalName, getNamespace, isInline, needsMaterialization
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 PartlyInlineTypedLiteralIV(AbstractLiteralIV<BigdataLiteral,?> delegate, IV<?,?> datatype)
public IV<V,org.openrdf.model.Literal> clone(boolean clearCache)
IVCache
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.
clone
in interface IVCache<V extends BigdataLiteral,org.openrdf.model.Literal>
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 label
.public final byte getExtensionByte()
AbstractNonInlineExtensionIV
getExtensionByte
in class AbstractNonInlineExtensionIV<V extends BigdataLiteral,org.openrdf.model.Literal>
INonInlineExtensionCodes
public String stringValue()
Value.stringValue()
.stringValue
in interface org.openrdf.model.Value
stringValue
in class AbstractNonInlineIV<V extends BigdataLiteral,org.openrdf.model.Literal>
public String getLabel()
Literal.getLabel()
.
We can use the inline delegate for this.
getLabel
in interface org.openrdf.model.Literal
getLabel
in class AbstractNonInlineIV<V extends BigdataLiteral,org.openrdf.model.Literal>
public boolean booleanValue()
Literal.booleanValue()
.
We can use the inline delegate for this.
booleanValue
in interface org.openrdf.model.Literal
booleanValue
in class AbstractNonInlineIV<V extends BigdataLiteral,org.openrdf.model.Literal>
public byte byteValue()
Literal.byteValue()
.
We can use the inline delegate for this.
byteValue
in interface org.openrdf.model.Literal
byteValue
in class AbstractNonInlineIV<V extends BigdataLiteral,org.openrdf.model.Literal>
public XMLGregorianCalendar calendarValue()
Literal.calendarValue()
.
We can use the inline delegate for this.
calendarValue
in interface org.openrdf.model.Literal
calendarValue
in class AbstractNonInlineIV<V extends BigdataLiteral,org.openrdf.model.Literal>
public BigDecimal decimalValue()
Literal.decimalValue()
.
We can use the inline delegate for this.
decimalValue
in interface org.openrdf.model.Literal
decimalValue
in class AbstractNonInlineIV<V extends BigdataLiteral,org.openrdf.model.Literal>
public double doubleValue()
Literal.doubleValue()
.
We can use the inline delegate for this.
doubleValue
in interface org.openrdf.model.Literal
doubleValue
in class AbstractNonInlineIV<V extends BigdataLiteral,org.openrdf.model.Literal>
public float floatValue()
Literal.floatValue()
.
We can use the inline delegate for this.
floatValue
in interface org.openrdf.model.Literal
floatValue
in class AbstractNonInlineIV<V extends BigdataLiteral,org.openrdf.model.Literal>
public int intValue()
Literal.intValue()
.
We can use the inline delegate for this.
intValue
in interface org.openrdf.model.Literal
intValue
in class AbstractNonInlineIV<V extends BigdataLiteral,org.openrdf.model.Literal>
public BigInteger integerValue()
Literal.integerValue()
.
We can use the inline delegate for this.
integerValue
in interface org.openrdf.model.Literal
integerValue
in class AbstractNonInlineIV<V extends BigdataLiteral,org.openrdf.model.Literal>
public long longValue()
Literal.longValue()
.
We can use the inline delegate for this.
longValue
in interface org.openrdf.model.Literal
longValue
in class AbstractNonInlineIV<V extends BigdataLiteral,org.openrdf.model.Literal>
public short shortValue()
Literal.shortValue()
.
We can use the inline delegate for this.
shortValue
in interface org.openrdf.model.Literal
shortValue
in class AbstractNonInlineIV<V extends BigdataLiteral,org.openrdf.model.Literal>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.