Class TripleResultsMetadata

All Implemented Interfaces:
ResultSetMetaData, Wrapper

public class TripleResultsMetadata extends JenaResultsMetadata
Result set metadata for TripleIteratorResults instances
  • Field Details

    • COLUMN_LABEL_SUBJECT

      public static final String COLUMN_LABEL_SUBJECT
      Constant for the default subject column label
      See Also:
    • COLUMN_LABEL_PREDICATE

      public static final String COLUMN_LABEL_PREDICATE
      Constant for the default predicate column label
      See Also:
    • COLUMN_LABEL_OBJECT

      public static final String COLUMN_LABEL_OBJECT
      Constant for the default object column label
      See Also:
    • COLUMN_INDEX_SUBJECT

      public static final int COLUMN_INDEX_SUBJECT
      Constant for the subject column index (assuming no columns are omitted)
      See Also:
    • COLUMN_INDEX_PREDICATE

      public static final int COLUMN_INDEX_PREDICATE
      Constant for the predicate column index (assuming no columns are omitted)
      See Also:
    • COLUMN_INDEX_OBJECT

      public static final int COLUMN_INDEX_OBJECT
      Constant for the object column index (assuming no columns are omitted)
      See Also:
    • NUM_COLUMNS

      public static final int NUM_COLUMNS
      Constant 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 Set
      ts - Triple iterator
      Throws:
      SQLException - Thrown if the metadata cannot be created
    • TripleResultsMetadata

      public TripleResultsMetadata(JenaResultSet results, Iterator<Triple> ts) throws SQLException
      Creates new results metadata for triple (CONSTRUCT/DESCRIBE) results
      Parameters:
      results - Result Set
      ts - 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 Set
      ts - Triple iterator
      subjLabel - Label for subject column, use null to omit the subject column
      predLabel - Label for predicate column, use null to omit the predicate column
      objLabel - Label for object column, use null 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 Set
      ts - Triple iterator
      subjLabel - Label for subject column, use null to omit the subject column
      predLabel - Label for predicate column, use null to omit the predicate column
      objLabel - Label for object column, use null 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 - Metadata
      subjLabel - Label for subject column, use null to omit the subject column
      predLabel - Label for predicate column, use null to omit the predicate column
      objLabel - Label for object column, use null 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 - Metadata
      columns - Column Information
      Throws:
      SQLException - Thrown if the metadata cannot be created
  • Method Details

    • getSubjectColumnLabel

      public String getSubjectColumnLabel()
      Gets the subject column label
      Returns:
      Column label or null if the column is omitted
    • getPredicateColumnLabel

      public String getPredicateColumnLabel()
      Gets the predicate column label
      Returns:
      Column label or null if the column is omitted
    • getObjectColumnLabel

      public String getObjectColumnLabel()
      Gets the object column label
      Returns:
      Column label or null if the column is omitted