public class XSDUnsignedLongIV<V extends BigdataLiteral> extends AbstractLiteralIV<V,BigInteger>
xsd:unsignedLong
.flags
Constructor and Description |
---|
XSDUnsignedLongIV(long value) |
Modifier and Type | Method and Description |
---|---|
int |
_compareTo(IV o)
Compare two
IV s having the same intrinsic datatype. |
V |
asValue(LexiconRelation lex)
If the value is not already cached, then inflate an inline RDF value to a
BigdataValue and cache it on a private field. |
boolean |
booleanValue()
Implement
Literal.booleanValue() . |
int |
byteLength()
The byte length of the encoded
IV . |
byte |
byteValue()
Implement
Literal.byteValue() . |
IV<V,BigInteger> |
clone(boolean clearCache)
Return a copy of this
IV . |
BigDecimal |
decimalValue()
Implement
Literal.decimalValue() . |
double |
doubleValue()
Implement
Literal.doubleValue() . |
boolean |
equals(Object o)
Return true iff the two
IV s are the same point in the same value
space. |
float |
floatValue()
Implement
Literal.floatValue() . |
BigInteger |
getInlineValue()
Return the Java
Object corresponding to the inline value. |
int |
hashCode()
Return the hash code of the long value.
|
BigInteger |
integerValue()
Implement
Literal.integerValue() . |
int |
intValue()
Implement
Literal.intValue() . |
long |
longValue()
Implement
Literal.longValue() . |
BigInteger |
promote()
Promote the
unsigned long into a signed BigInteger . |
static BigInteger |
promote(long value) |
long |
rawValue()
The unsigned long value.
|
short |
shortValue()
Implement
Literal.shortValue() . |
String |
stringValue()
Implement
Value.stringValue() . |
calendarValue, getDatatype, getLabel, getLanguage, needsMaterialization, toString
isInline
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
encode, flags, getDTE, getDTEX, getVTE, isBigNumeric, isBNode, isExtension, isFixedNumeric, isFloatingPointNumeric, isInline, isLiteral, isNullIV, isNumeric, isResource, isSignedNumeric, isStatement, isUnsignedNumeric, isURI, isVocabulary
compareTo
public long rawValue()
public IV<V,BigInteger> 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.
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 final BigInteger promote()
unsigned long
into a signed BigInteger
.public static BigInteger promote(long value)
public final BigInteger getInlineValue()
IV
Object
corresponding to the inline value.Object
.public V asValue(LexiconRelation lex)
IVCache
BigdataValue
and cache it on a private field.
Note: Query plans are responsible for ensuring that IV
s have been
materialized before operators are evaluated which invoke this method.
This pattern ensures that efficient batch operators are used to
materialize Value
s, and thereby avoids heavy RMI overhead in
scale-out, and provides operators which use IVCache.getValue()
with a
simple method signature which does not require access to the lexicon.
Query plans are also responsible for dropping variables once they are no
longer needed or, in the case of large values and BLOBs, dropping the
cached BigdataValue
when possible in order to avoid excess
network and heap overhead.
lex
- The lexicon relation (this is required in order to access the
BigdataValueFactory
for the namespace associated with
lexicon when we materialize an inline IV
).BigdataValue
.public final long longValue()
AbstractLiteralIV
Literal.longValue()
.longValue
in interface org.openrdf.model.Literal
longValue
in class AbstractLiteralIV<V extends BigdataLiteral,BigInteger>
public boolean booleanValue()
AbstractLiteralIV
Literal.booleanValue()
.booleanValue
in interface org.openrdf.model.Literal
booleanValue
in class AbstractLiteralIV<V extends BigdataLiteral,BigInteger>
public byte byteValue()
AbstractLiteralIV
Literal.byteValue()
.byteValue
in interface org.openrdf.model.Literal
byteValue
in class AbstractLiteralIV<V extends BigdataLiteral,BigInteger>
public double doubleValue()
AbstractLiteralIV
Literal.doubleValue()
.doubleValue
in interface org.openrdf.model.Literal
doubleValue
in class AbstractLiteralIV<V extends BigdataLiteral,BigInteger>
public float floatValue()
AbstractLiteralIV
Literal.floatValue()
.floatValue
in interface org.openrdf.model.Literal
floatValue
in class AbstractLiteralIV<V extends BigdataLiteral,BigInteger>
public int intValue()
AbstractLiteralIV
Literal.intValue()
.intValue
in interface org.openrdf.model.Literal
intValue
in class AbstractLiteralIV<V extends BigdataLiteral,BigInteger>
public short shortValue()
AbstractLiteralIV
Literal.shortValue()
.shortValue
in interface org.openrdf.model.Literal
shortValue
in class AbstractLiteralIV<V extends BigdataLiteral,BigInteger>
public String stringValue()
AbstractLiteralIV
Value.stringValue()
.stringValue
in interface org.openrdf.model.Value
stringValue
in class AbstractLiteralIV<V extends BigdataLiteral,BigInteger>
public BigDecimal decimalValue()
AbstractLiteralIV
Literal.decimalValue()
.decimalValue
in interface org.openrdf.model.Literal
decimalValue
in class AbstractLiteralIV<V extends BigdataLiteral,BigInteger>
public BigInteger integerValue()
AbstractLiteralIV
Literal.integerValue()
.integerValue
in interface org.openrdf.model.Literal
integerValue
in class AbstractLiteralIV<V extends BigdataLiteral,BigInteger>
public boolean equals(Object o)
AbstractIV
IV
s are the same point in the same value
space. Points in different value spaces (as identified by different
datatype URIs) are NOT equal even if they have the same value in the
corresponding primitive data type.
Note: The IV
implementations typically DO NOT compare equals()
with BigdataValue
s. Therefore you MUST NOT mix IV
s and
BigdataValue
s in the keys of a map or the values of a set.
equals
in interface org.openrdf.model.Literal
equals
in class AbstractIV<V extends BigdataLiteral,BigInteger>
public int hashCode()
hashCode
in interface org.openrdf.model.Literal
hashCode
in class AbstractIV<V extends BigdataLiteral,BigInteger>
public int byteLength()
IV
IV
.public int _compareTo(IV o)
AbstractIV
IV
s having the same intrinsic datatype._compareTo
in class AbstractIV<V extends BigdataLiteral,BigInteger>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.