Class TripleResultsMetadata
java.lang.Object
org.apache.jena.jdbc.results.metadata.AbstractResultsMetadata
org.apache.jena.jdbc.results.metadata.JenaResultsMetadata
org.apache.jena.jdbc.results.metadata.TripleResultsMetadata
- All Implemented Interfaces:
ResultSetMetaData
,Wrapper
Result set metadata for
TripleIteratorResults
instances-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Constant for the object column index (assuming no columns are omitted)static final int
Constant for the predicate column index (assuming no columns are omitted)static final int
Constant for the subject column index (assuming no columns are omitted)static final String
Constant for the default object column labelstatic final String
Constant for the default predicate column labelstatic final String
Constant for the default subject column labelstatic final int
Constant for the number of columns in triple resultsFields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
-
Constructor Summary
ConstructorsConstructorDescriptionTripleResultsMetadata
(JenaResultSet results, Iterator<Triple> ts) Creates new results metadata for triple (CONSTRUCT/DESCRIBE) resultsTripleResultsMetadata
(JenaResultSet results, Iterator<Triple> ts, String subjLabel, String predLabel, String objLabel) Creates new results metadata for triple (CONSTRUCT/DESCRIBE) resultsTripleResultsMetadata
(JenaResultSet results, org.apache.jena.atlas.iterator.PeekIterator<Triple> ts) Creates new results metadata for triple (CONSTRUCT/DESCRIBE) resultsTripleResultsMetadata
(JenaResultSet results, org.apache.jena.atlas.iterator.PeekIterator<Triple> ts, String subjLabel, String predLabel, String objLabel) Creates new results metadata for triple (CONSTRUCT/DESCRIBE) resultsTripleResultsMetadata
(TripleResultsMetadata metadata, String subjLabel, String predLabel, String objLabel) Creates new results metadata for triple (CONSTRUCT/DESCRIBE) resultsTripleResultsMetadata
(TripleResultsMetadata metadata, ColumnInfo[] columns) Creates new results metadata for triple (CONSTRUCT/DESCRIBE) results -
Method Summary
Modifier and TypeMethodDescriptionGets the object column labelGets the predicate column labelGets the subject column labelMethods inherited from class org.apache.jena.jdbc.results.metadata.AbstractResultsMetadata
getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getJenaColumnInfo, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWrapperFor, isWritable, unwrap
-
Field Details
-
COLUMN_LABEL_SUBJECT
Constant for the default subject column label- See Also:
-
COLUMN_LABEL_PREDICATE
Constant for the default predicate column label- See Also:
-
COLUMN_LABEL_OBJECT
Constant for the default object column label- See Also:
-
COLUMN_INDEX_SUBJECT
public static final int COLUMN_INDEX_SUBJECTConstant for the subject column index (assuming no columns are omitted)- See Also:
-
COLUMN_INDEX_PREDICATE
public static final int COLUMN_INDEX_PREDICATEConstant for the predicate column index (assuming no columns are omitted)- See Also:
-
COLUMN_INDEX_OBJECT
public static final int COLUMN_INDEX_OBJECTConstant for the object column index (assuming no columns are omitted)- See Also:
-
NUM_COLUMNS
public static final int NUM_COLUMNSConstant for the number of columns in triple results- See Also:
-
-
Constructor Details
-
TripleResultsMetadata
public TripleResultsMetadata(JenaResultSet results, org.apache.jena.atlas.iterator.PeekIterator<Triple> ts) throws SQLException Creates new results metadata for triple (CONSTRUCT/DESCRIBE) results- Parameters:
results
- Result Setts
- Triple iterator- Throws:
SQLException
- Thrown if the metadata cannot be created
-
TripleResultsMetadata
Creates new results metadata for triple (CONSTRUCT/DESCRIBE) results- Parameters:
results
- Result Setts
- Triple iterator- Throws:
SQLException
- Thrown if the metadata cannot be created
-
TripleResultsMetadata
public TripleResultsMetadata(JenaResultSet results, org.apache.jena.atlas.iterator.PeekIterator<Triple> ts, String subjLabel, String predLabel, String objLabel) throws SQLException Creates new results metadata for triple (CONSTRUCT/DESCRIBE) results- Parameters:
results
- Result Setts
- Triple iteratorsubjLabel
- Label for subject column, usenull
to omit the subject columnpredLabel
- Label for predicate column, usenull
to omit the predicate columnobjLabel
- Label for object column, usenull
to omit the object column- Throws:
SQLException
- Thrown if the metadata cannot be created
-
TripleResultsMetadata
public TripleResultsMetadata(JenaResultSet results, Iterator<Triple> ts, String subjLabel, String predLabel, String objLabel) throws SQLException Creates new results metadata for triple (CONSTRUCT/DESCRIBE) results- Parameters:
results
- Result Setts
- Triple iteratorsubjLabel
- Label for subject column, usenull
to omit the subject columnpredLabel
- Label for predicate column, usenull
to omit the predicate columnobjLabel
- Label for object column, usenull
to omit the object column- Throws:
SQLException
- Thrown if the metadata cannot be created
-
TripleResultsMetadata
public TripleResultsMetadata(TripleResultsMetadata metadata, String subjLabel, String predLabel, String objLabel) throws SQLException Creates new results metadata for triple (CONSTRUCT/DESCRIBE) results- Parameters:
metadata
- MetadatasubjLabel
- Label for subject column, usenull
to omit the subject columnpredLabel
- Label for predicate column, usenull
to omit the predicate columnobjLabel
- Label for object column, usenull
to omit the object column- Throws:
SQLException
- Thrown if the metadata cannot be created
-
TripleResultsMetadata
public TripleResultsMetadata(TripleResultsMetadata metadata, ColumnInfo[] columns) throws SQLException Creates new results metadata for triple (CONSTRUCT/DESCRIBE) results- Parameters:
metadata
- Metadatacolumns
- Column Information- Throws:
SQLException
- Thrown if the metadata cannot be created
-
-
Method Details
-
getSubjectColumnLabel
Gets the subject column label- Returns:
- Column label or
null
if the column is omitted
-
getPredicateColumnLabel
Gets the predicate column label- Returns:
- Column label or
null
if the column is omitted
-
getObjectColumnLabel
Gets the object column label- Returns:
- Column label or
null
if the column is omitted
-