Package org.eclipse.rdf4j.rio.hdt
Class HDTTriples
java.lang.Object
org.eclipse.rdf4j.rio.hdt.HDTPart
org.eclipse.rdf4j.rio.hdt.HDTTriples
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 more key=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
and NULL
included)
Structure:
+------+------+-----+------+------------+------+-------+ | $HDT | type | URI | NULL | key=value; | NULL | CRC16 | +------+------+-----+------+------------+------+-------+
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.eclipse.rdf4j.rio.hdt.HDTPart
HDTPart.Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final byte[]
protected static final byte[]
private int
protected static final String
private HDTTriples.Order
protected static final String
Fields inherited from class org.eclipse.rdf4j.rio.hdt.HDTPart
COOKIE, name, pos, properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HDTTriples.Order
getOrder()
Return triple orderprotected void
parse
(InputStream is) Parse from input streamMethods inherited from class org.eclipse.rdf4j.rio.hdt.HDTPart
checkControl, checkCRC, checkFormat, countToNull, getDebugPartStr, getIntegerProperty, getProperties, getProperties, mapProperties, readToNull
-
Field Details
-
FORMAT_LIST
protected static final byte[] FORMAT_LIST -
FORMAT_BITMAP
protected static final byte[] FORMAT_BITMAP -
ORDER
- See Also:
-
NUM
- See Also:
-
order
-
nrtriples
private int nrtriples
-
-
Constructor Details
-
HDTTriples
HDTTriples()
-
-
Method Details
-
getOrder
Return triple order- Returns:
- enum
-
parse
Description copied from class:HDTPart
Parse from input stream- Specified by:
parse
in classHDTPart
- Parameters:
is
-- Throws:
IOException
-