public enum DTEExtension extends Enum<DTEExtension>
DTE
.(Implement support for DTE extension types for URIs)
TODO add a variable length nibble encoding of a byte[]?
Enum Constant and Description |
---|
ARRAY
An array of inline IVs.
|
IPV4
An IPV4 address.
|
MOCKED_IV
An mocked IV (used internally).
|
PACKED_LONG
A packed long value, restricted to the range [0;72057594037927935L].
|
RESERVED
This is a place holder for extension of the intrinsic data types.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getCls()
The class of the Java object used to represent instances of the coded
data type.
|
org.openrdf.model.URI |
getDatatypeURI()
The corresponding datatype
URI . |
int |
len()
The length of the data type value when represented as a component in an
unsigned byte[] key -or- ZERO iff the key component has a variable length
for that data type.
|
byte |
v()
An
byte value whose whose lower 6 bits code the
DTE . |
static DTEExtension |
valueOf(byte b) |
static DTEExtension |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DTEExtension |
valueOf(org.openrdf.model.URI datatype)
Return the
DTEExtension for the datatype URI . |
static DTEExtension[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DTEExtension IPV4
public static final DTEExtension PACKED_LONG
public static final DTEExtension ARRAY
public static final DTEExtension MOCKED_IV
public static final DTEExtension RESERVED
Note: This is NOT the same as the AbstractIV.isExtension()
bit.
The latter always indicates that an IV
follows
the flags
byte and indicates the actual datatype URI. In
contrast, RESERVED
is a placeholder that could give us another
byte to handle additional "intrinsic" types.
(Implement support for DTE extension types for URIs)
TODO If we wind up extending things again, it would perhaps be nicer
to have an extension mechanism for non-intrinsic data types (ones
that can be registered without having to explicitly create them in
the code).
public static DTEExtension[] values()
for (DTEExtension c : DTEExtension.values()) System.out.println(c);
public static DTEExtension valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static final DTEExtension valueOf(byte b)
public static final DTEExtension valueOf(org.openrdf.model.URI datatype)
DTEExtension
for the datatype URI
.datatype
- The datatype URI
.DTEException
for that datatype -or- null
if the datatype URI
is none of the datatypes for which
native support is provided.public final byte v()
byte
value whose whose lower 6 bits code the
DTE
.public final int len()
public final Class<?> getCls()
public final org.openrdf.model.URI getDatatypeURI()
URI
.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.