V
- The generic type for the RDF Value
implementation.T
- The generic type for the inline value.public interface IV<V extends BigdataValue,T> extends Serializable, Comparable<IV>, IVCache<V,T>, org.openrdf.model.Value
Value
(the
representation which is encoded within the statement indices).Modifier and Type | Method and Description |
---|---|
int |
byteLength()
The byte length of the encoded
IV . |
IKeyBuilder |
encode(IKeyBuilder keyBuilder)
Encode the
IV as an unsigned byte[]. |
byte |
flags()
|
DTE |
getDTE()
|
DTEExtension |
getDTEX()
IFF
getDTE() returns DTE.Extension then this method will
report the DTEExtension value that specifies the intrinsic
datatype for this IV. |
T |
getInlineValue()
Return the Java
Object corresponding to the inline value. |
VTE |
getVTE()
|
boolean |
isBigNumeric()
true for xsd:integer and xsd:decimal. |
boolean |
isBNode()
Return
true iff this is an RDF BlankNode. |
boolean |
isExtension()
|
boolean |
isFixedNumeric()
This is
!isBigNumeric() and is true for any of
the fixed length numeric data types (xsd:byte, xsd:unsignedByte,
xsd:short, xsd:unsignedShort, xsd:int, xsd:unsignedInt, xsd:long,
xsd:unsignedLong, xsd:float, xsd:double). |
boolean |
isFloatingPointNumeric()
true for xsd:float, xsd:double, and xsd:decimal |
boolean |
isInline()
true iff the RDF value is directly represented inline. |
boolean |
isLiteral()
Return
true iff this is an RDF Literal. |
boolean |
isNullIV()
|
boolean |
isNumeric()
true for any of the numeric data types (xsd:byte,
xsd:unsignedByte, xsd:short, xsd:unsignedShort, xsd:int, xsd:unsignedInt,
xsd:long, xsd:unsignedLong, xsd:float, xsd:double, xsd:integer, and
xsd:decimal). |
boolean |
isResource()
Return
true iff this is a URI or a bnode. |
boolean |
isSignedNumeric()
true for an signed numeric datatype ( xsd:byte,
xsd:short, xsd:int, xsd:long, xsd:float, xsd:double, xsd:integer, and
xsd:decimal). |
boolean |
isStatement()
Return
true iff this is a statement identifier (this feature
is enabled with AbstractTripleStore.Options.STATEMENT_IDENTIFIERS ). |
boolean |
isUnsignedNumeric()
true for an unsigned numeric datatype ( xsd:unsignedByte,
xsd:unsignedShort, xsd:unsignedInt, xsd:unsignedLong). |
boolean |
isURI()
Return
true iff this is an RDF URI . |
boolean |
isVocabulary()
|
boolean |
needsMaterialization()
|
compareTo
byte flags()
int byteLength()
IV
.IKeyBuilder encode(IKeyBuilder keyBuilder)
IV
as an unsigned byte[].keyBuilder
- The object used to encode the IV
.VTE getVTE()
boolean isLiteral()
true
iff this is an RDF Literal. Note that some kinds
of RDF Literals MAY be represented inline.boolean isBNode()
true
iff this is an RDF BlankNode.boolean isURI()
true
iff this is an RDF URI
.boolean isStatement()
true
iff this is a statement identifier (this feature
is enabled with AbstractTripleStore.Options.STATEMENT_IDENTIFIERS
).boolean isResource()
true
iff this is a URI or a bnode.DTE getDTE()
DTE
for the IV
.
This will be DTE#TermId
iff the internal "value"
is a term identifier. Otherwise it will be the type safe enum
corresponding to the specific data type which can be decoded from this
IV
using getInlineValue()
.DTEExtension getDTEX()
getDTE()
returns DTE.Extension
then this method will
report the DTEExtension
value that specifies the intrinsic
datatype for this IV.(Implement support for DTE extension types for URIs)
,
( DTEExtension for compressed timestamp)
boolean isNullIV()
boolean isInline()
true
iff the RDF value is directly represented inline. When
an RDF Value is "inline" its value can be directly decoded from its
representation in the keys of the statement indices.boolean isExtension()
true
iff the flags
byte is followed by an
IV
which defines how the subsequent value (represented according
to the DTE
) will be interpreted. This is used to support
projections of value spaces for data type literals onto the intrinsic
types. It is also used to support indirect resolution of the namespace
associated with a URI.boolean isVocabulary()
T getInlineValue() throws UnsupportedOperationException
Object
corresponding to the inline value.Object
.UnsupportedOperationException
- unless the RDF value is inline.boolean isNumeric()
true
for any of the numeric data types (xsd:byte,
xsd:unsignedByte, xsd:short, xsd:unsignedShort, xsd:int, xsd:unsignedInt,
xsd:long, xsd:unsignedLong, xsd:float, xsd:double, xsd:integer, and
xsd:decimal).boolean isSignedNumeric()
true
for an signed numeric datatype ( xsd:byte,
xsd:short, xsd:int, xsd:long, xsd:float, xsd:double, xsd:integer, and
xsd:decimal).boolean isUnsignedNumeric()
true
for an unsigned numeric datatype ( xsd:unsignedByte,
xsd:unsignedShort, xsd:unsignedInt, xsd:unsignedLong).boolean isFixedNumeric()
!isBigNumeric()
and is true
for any of
the fixed length numeric data types (xsd:byte, xsd:unsignedByte,
xsd:short, xsd:unsignedShort, xsd:int, xsd:unsignedInt, xsd:long,
xsd:unsignedLong, xsd:float, xsd:double).boolean isBigNumeric()
true
for xsd:integer and xsd:decimal.boolean isFloatingPointNumeric()
true
for xsd:float, xsd:double, and xsd:decimalboolean needsMaterialization()
IV
implementation will implement one of the
corresponding openrdf Value
interfaces depending on the type of
value the IV
represents (URI
, BNode
, or
Literal
). This method signifies whether or not the IV can deliver
the information needed by those interfaces with or without
materialization. For example, inline numerics can implement the entire
Literal
interface without needing to be materialized into a
BigdataLiteral
. TermId
s cannot answer any of the requests
in the openrdf interfaces without materialization (all the relevant
information is in the lexicon indices). Even some inlines need
materialization. For example, ...Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.