public class FullyInlineUnicodeBNodeIV<V extends BigdataBNode> extends AbstractBNodeIV<V,String> implements IInlineUnicode
AbstractTripleStore.Options
,
Serialized Formflags
Constructor and Description |
---|
FullyInlineUnicodeBNodeIV(String id) |
FullyInlineUnicodeBNodeIV(String id,
int byteLength) |
Modifier and Type | Method and Description |
---|---|
int |
_compareTo(IV o)
Compare two
IV s having the same intrinsic datatype. |
int |
byteLength()
The byte length of the encoded
IV . |
IV<V,String> |
clone(boolean clearCache)
Return a copy of this
IV . |
boolean |
equals(Object o)
Return true iff the two
IV s are the same point in the same value
space. |
String |
getID()
Implements
BNode.getID() . |
String |
getInlineValue()
Return the Java
Object corresponding to the inline value. |
int |
hashCode()
Return a hash code based on the value of the point in the value space.
|
boolean |
needsMaterialization()
Does not need materialization to answer BNode interface methods.
|
void |
setByteLength(int byteLength)
Cache the byteLength on the
IV . |
String |
toString() |
asValue, stringValue
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
public FullyInlineUnicodeBNodeIV(String id)
public IV<V,String> 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 BigdataBNode,String>
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 String getInlineValue()
IV
Object
corresponding to the inline value.getInlineValue
in interface IV<V extends BigdataBNode,String>
Object
.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.BNode
equals
in class AbstractIV<V extends BigdataBNode,String>
public int _compareTo(IV o)
AbstractIV
IV
s having the same intrinsic datatype._compareTo
in class AbstractIV<V extends BigdataBNode,String>
public int hashCode()
AbstractIV
Note: The IV
implementations typically DO NOT return hash codes
that are consistent with BigdataValue#hashCode()
. Therefore you
MUST NOT mix IV
s and BigdataValue
s in the keys of a map
or the values of a set.
hashCode
in interface org.openrdf.model.BNode
hashCode
in class AbstractIV<V extends BigdataBNode,String>
public int byteLength()
IV
IV
.byteLength
in interface IV<V extends BigdataBNode,String>
public final void setByteLength(int byteLength)
IInlineUnicode
IV
.setByteLength
in interface IInlineUnicode
byteLength
- The byteLength.public String getID()
BNode.getID()
.getID
in interface org.openrdf.model.BNode
public boolean needsMaterialization()
needsMaterialization
in interface IV<V extends BigdataBNode,String>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.