Class Row

java.lang.Object
com.lexalytics.salience.Row

public class Row
extends java.lang.Object

A Row object represents a particular row from a list or table (which are represented by a Section.

  • Constructor Summary

    Constructors 
    Constructor Description
    Row​(java.util.Vector<Sentence> vColumns)
    Creates a new row.
  • Method Summary

    Modifier and Type Method Description
    Sentence getColumn​(int nIndex)
    Retrieves an entry at the specified index.
    int getColumnCount()
    Retrieves the number of columns in this row.
    java.util.Vector<Sentence> getColumns()
    Retrieves the column entries for this row.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Row

      public Row​(java.util.Vector<Sentence> vColumns)
      Creates a new row. This is not intended for client use. Rows are a part of Section which are created by Salience Engine when a Salience.getDocumentDetails() API method is called.
      Parameters:
      vColumns - A vector where each Sentence represents the column entry in this particular row.
  • Method Details

    • getColumns

      public java.util.Vector<Sentence> getColumns()
      Retrieves the column entries for this row.
      Returns:
      A Vector of Sentence objects where each Sentence corresponds to an entry in the row.
    • getColumnCount

      public int getColumnCount()
      Retrieves the number of columns in this row.
      Returns:
      The number of columns in this row.
    • getColumn

      public Sentence getColumn​(int nIndex)
      Retrieves an entry at the specified index.
      Parameters:
      nIndex - The column index of the desired entry.
      Returns:
      The entry at a specified column index.