Package org.eclipse.rdf4j.rio.hdt
Class HDTTriples
- java.lang.Object
-
- org.eclipse.rdf4j.rio.hdt.HDTPart
-
- org.eclipse.rdf4j.rio.hdt.HDTTriples
-
class HDTTriples extends HDTPart
HDT Triples Part.This part starts with
$HDT
, followed by a byte indicating the type of the part, the NULL-terminated URI string for the format, and optionally one or morekey=value;
properties.These properties may include the order (SPO, SOP...), and the number of triples.
Then a
NULL
byte, followed by the 16-bit CRC ($HDT
andNULL
included)Structure:
+------+------+-----+------+------------+------+-------+ | $HDT | type | URI | NULL | key=value; | NULL | CRC16 | +------+------+-----+------+------------+------+-------+
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
HDTTriples.Order
-
Nested classes/interfaces inherited from class org.eclipse.rdf4j.rio.hdt.HDTPart
HDTPart.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected static byte[]
FORMAT_BITMAP
protected static byte[]
FORMAT_LIST
private int
nrtriples
protected static java.lang.String
NUM
private HDTTriples.Order
order
protected static java.lang.String
ORDER
-
Fields inherited from class org.eclipse.rdf4j.rio.hdt.HDTPart
COOKIE, name, pos, properties
-
-
Constructor Summary
Constructors Constructor Description HDTTriples()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HDTTriples.Order
getOrder()
Return triple orderprotected void
parse(java.io.InputStream is)
Parse from input stream-
Methods inherited from class org.eclipse.rdf4j.rio.hdt.HDTPart
checkControl, checkCRC, checkFormat, countToNull, getDebugPartStr, getIntegerProperty, getProperties, getProperties, mapProperties, readToNull
-
-
-
-
Field Detail
-
FORMAT_LIST
protected static final byte[] FORMAT_LIST
-
FORMAT_BITMAP
protected static final byte[] FORMAT_BITMAP
-
ORDER
protected static final java.lang.String ORDER
- See Also:
- Constant Field Values
-
NUM
protected static final java.lang.String NUM
- See Also:
- Constant Field Values
-
order
private HDTTriples.Order order
-
nrtriples
private int nrtriples
-
-
Method Detail
-
getOrder
protected HDTTriples.Order getOrder()
Return triple order- Returns:
- enum
-
-