public class CompressedTimestampExtension<V extends BigdataValue> extends Object implements IExtension<V>
.
Builds on the PackedLongIV
datatype for representing timestamps,
thus supporting the range [0;72057594037927935L].
The datatype is recommended for use with timestamps specified in seconds
and milliseconds; you should not run into any range issues there at all.
Using the datatype for timestamps in microseconds or smaller is discouraged:
in the microseconds case the value 72057594037927935 corresponds to Fri,
04 May 2198 23:50:03 GMT, so you couldn't represent dates beyond that time.Modifier and Type | Field and Description |
---|---|
static org.openrdf.model.URI |
COMPRESSED_TIMESTAMP |
Constructor and Description |
---|
CompressedTimestampExtension(IDatatypeURIResolver resolver) |
Modifier and Type | Method and Description |
---|---|
V |
asValue(LiteralExtensionIV iv,
BigdataValueFactory vf)
Create an RDF value from an
LiteralExtensionIV . |
LiteralExtensionIV |
createIV(org.openrdf.model.Value value)
Convert the supplied value into an internal representation as PackedLongIV.
|
Set<BigdataURI> |
getDatatypes()
Return the fully resolved datatype(s) handled by this interface in the
form of a
BigdataURI with the TermId already set. |
public CompressedTimestampExtension(IDatatypeURIResolver resolver)
public Set<BigdataURI> getDatatypes()
IExtension
BigdataURI
with the TermId
already set.getDatatypes
in interface IExtension<V extends BigdataValue>
public LiteralExtensionIV createIV(org.openrdf.model.Value value)
createIV
in interface IExtension<V extends BigdataValue>
value
- The RDF Value
IV
-or- null
if the
Value
can not be inlined using this IExtension
.public V asValue(LiteralExtensionIV iv, BigdataValueFactory vf)
IExtension
LiteralExtensionIV
.asValue
in interface IExtension<V extends BigdataValue>
iv
- The extension IV
vf
- The bigdata value factoryValue
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.