Class LongIndex

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

public class LongIndex extends Object implements Index
An index for eight-byte long and long backed columns (datetime)
  • Constructor Details

    • LongIndex

      public LongIndex(TemporalColumn<?> column)
      Constructs an index for the given column
    • LongIndex

      public LongIndex(LongColumn column)
      Constructs an index for the given column
  • Method Details

    • get

      public Selection get(long value)
      Returns a bitmap containing row numbers of all cells matching the given long
      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(Instant value)
      Returns the Selection of all values exactly equal to the given value
    • get

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

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

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

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

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

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

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

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

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

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

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

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

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