org.openrdf.sesame.query
Interface BinaryTableResultConstants

All Known Implementing Classes:
BinaryTableResultReader, BinaryTableResultWriter

public interface BinaryTableResultConstants

Interface defining constants for the binary table result format. Files in this format consist of a header followed by zero or more records. Data fields are encoded as specified in the interfaces java.io.DataInput and java.io.DataOutput. The header is 12 bytes long:

Following this are the column headers, which are encoded as UTF-8 strings. There are as many column headers as the number of columns that has been specified in the header.

Zero or more records follow after the column headers. This can be a mixture of records describing a result and supporting records. The results table is described by the result records which are writtin from left to right, from top to bottom. Each record starts with a record type marker (a single byte). The following records are defined in the current format:

Version:
$Revision: 1.3.4.2 $
Author:
Arjohn Kampman

Field Summary
static int BNODE_RECORD_MARKER
           
static int DATATYPE_LITERAL_RECORD_MARKER
           
static int ERROR_RECORD_MARKER
           
static int FORMAT_VERSION
          The version number of the current format.
static int LANG_LITERAL_RECORD_MARKER
           
static byte[] MAGIC_NUMBER
          Magic number for Binary RDF Table Result files.
static int MALFORMED_QUERY_ERROR
           
static int NAMESPACE_RECORD_MARKER
           
static int NULL_RECORD_MARKER
           
static int PLAIN_LITERAL_RECORD_MARKER
           
static int QNAME_RECORD_MARKER
           
static int QUERY_EVALUATION_ERROR
           
static int REPEAT_RECORD_MARKER
           
static int TABLE_END_RECORD_MARKER
           
static int URI_RECORD_MARKER
           
 

Field Detail

MAGIC_NUMBER

public static final byte[] MAGIC_NUMBER
Magic number for Binary RDF Table Result files.


FORMAT_VERSION

public static final int FORMAT_VERSION
The version number of the current format.

See Also:
Constant Field Values

NULL_RECORD_MARKER

public static final int NULL_RECORD_MARKER
See Also:
Constant Field Values

REPEAT_RECORD_MARKER

public static final int REPEAT_RECORD_MARKER
See Also:
Constant Field Values

NAMESPACE_RECORD_MARKER

public static final int NAMESPACE_RECORD_MARKER
See Also:
Constant Field Values

QNAME_RECORD_MARKER

public static final int QNAME_RECORD_MARKER
See Also:
Constant Field Values

URI_RECORD_MARKER

public static final int URI_RECORD_MARKER
See Also:
Constant Field Values

BNODE_RECORD_MARKER

public static final int BNODE_RECORD_MARKER
See Also:
Constant Field Values

PLAIN_LITERAL_RECORD_MARKER

public static final int PLAIN_LITERAL_RECORD_MARKER
See Also:
Constant Field Values

LANG_LITERAL_RECORD_MARKER

public static final int LANG_LITERAL_RECORD_MARKER
See Also:
Constant Field Values

DATATYPE_LITERAL_RECORD_MARKER

public static final int DATATYPE_LITERAL_RECORD_MARKER
See Also:
Constant Field Values

ERROR_RECORD_MARKER

public static final int ERROR_RECORD_MARKER
See Also:
Constant Field Values

TABLE_END_RECORD_MARKER

public static final int TABLE_END_RECORD_MARKER
See Also:
Constant Field Values

MALFORMED_QUERY_ERROR

public static final int MALFORMED_QUERY_ERROR
See Also:
Constant Field Values

QUERY_EVALUATION_ERROR

public static final int QUERY_EVALUATION_ERROR
See Also:
Constant Field Values


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.