Class TupleTableInfo

java.lang.Object
tech.oxfordsemantic.jrdfox.client.TupleTableInfo

public class TupleTableInfo
extends java.lang.Object
Encapsulates information about a tuple table.
  • Constructor Summary

    Constructors 
    Constructor Description
    TupleTableInfo​(java.lang.String name, int id, long endTupleIndex, java.lang.String[] columnNames, java.lang.String dataSourceName)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object that)  
    int getArity()
    Returns the arity (i.e., the number of columns) of a tuple table.
    java.lang.String getColumnName​(int columnIndex)
    Returns the name of a tuple table column with the given index.
    java.lang.String getDataSourceName()
    Returns the name of a data source that this tuple table has been mounted from, or null if this tuple table has not been mounted from a data source.
    long getEndTupleIndex()
    Returns one plus the maximum index of a tuple that can be stored in this tuple table.
    int getID()
    Returns the ID of a tuple table.
    java.lang.String getName()
    Returns the name of a tuple table.
    int hashCode()  

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TupleTableInfo

      public TupleTableInfo​(java.lang.String name, int id, long endTupleIndex, java.lang.String[] columnNames, java.lang.String dataSourceName)
  • Method Details

    • getName

      public java.lang.String getName()
      Returns the name of a tuple table.
      Returns:
      the name of a tuple table
    • getID

      public int getID()
      Returns the ID of a tuple table. The ID of a tuple table is unique in a data store and is often used for more efficient identification of a tuple table.
      Returns:
      the ID of a tuple table
    • getEndTupleIndex

      public long getEndTupleIndex()
      Returns one plus the maximum index of a tuple that can be stored in this tuple table. This, this value is (roughly) the capacity of the tuple table. Since Java does not provide unsigned 64-bit values, this value is always limited to 263 - 1.
      Returns:
      one plus the maximum index of a tuple that can be stored in this tuple table
    • getArity

      public int getArity()
      Returns the arity (i.e., the number of columns) of a tuple table.
      Returns:
      the arity of a tuple table
    • getColumnName

      public java.lang.String getColumnName​(int columnIndex)
      Returns the name of a tuple table column with the given index.
      Parameters:
      columnIndex - the index of the column whose name is to be returned
      Returns:
      the name of the specified column
    • getDataSourceName

      public java.lang.String getDataSourceName()
      Returns the name of a data source that this tuple table has been mounted from, or null if this tuple table has not been mounted from a data source.
      Returns:
      the name of the data source that this tuple table has been mounted from (can be null)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object that)
      Overrides:
      equals in class java.lang.Object