Class IntIndex

java.lang.Object
tech.tablesaw.index.IntIndex
All Implemented Interfaces:
Index

public class IntIndex extends Object implements Index
An index for four-byte integer and integer backed columns (date, String, time)
  • Constructor Details

    • IntIndex

      public IntIndex(DateColumn column)
      Constructs an index for the given column
    • IntIndex

      public IntIndex(IntColumn column)
      Constructs an index for the given column
    • IntIndex

      public IntIndex(TimeColumn column)
      Constructs an index for the given column
  • Method Details

    • get

      public Selection get(int value)
      Returns a bitmap Selection containing row numbers of all cells matching the given int
      Parameters:
      value - This is a 'key' from the index perspective, meaning it is a value from the standpoint of the column
    • get

      public Selection get(LocalTime value)
      Returns the Selection of all values exactly equal to the given value
    • get

      public Selection get(LocalDate value)
      Returns the Selection of all values exactly equal to the given value
    • atLeast

      public Selection atLeast(int value)
      Returns a Selection of all values at least as large as the given value
    • atLeast

      public Selection atLeast(LocalTime value)
      Returns a Selection of all values at least as large as the given value
    • atLeast

      public Selection atLeast(LocalDate value)
      Returns a Selection of all values at least as large as the given value
    • greaterThan

      public Selection greaterThan(int value)
      Returns a Selection of all values greater than the given value
    • greaterThan

      public Selection greaterThan(LocalTime value)
      Returns a Selection of all values greater than the given value
    • greaterThan

      public Selection greaterThan(LocalDate value)
      Returns a Selection of all values greater than the given value
    • atMost

      public Selection atMost(int value)
      Returns a Selection of all values at most as large as the given value
    • atMost

      public Selection atMost(LocalTime value)
      Returns a Selection of all values at most as large as the given value
    • atMost

      public Selection atMost(LocalDate value)
      Returns a Selection of all values at most as large as the given value
    • lessThan

      public Selection lessThan(int value)
      Returns a Selection of all values less than the given value
    • lessThan

      public Selection lessThan(LocalTime value)
      Returns a Selection of all values less than the given value
    • lessThan

      public Selection lessThan(LocalDate value)
      Returns a Selection of all values less than the given value