Interface DictionaryMap

All Known Implementing Classes:
ByteDictionaryMap, IntDictionaryMap, ShortDictionaryMap

public interface DictionaryMap
Interface implemented by the objects that perform the dictionary encoding of the Strings in StringColumn, as well as the primitive values that represent the individual instances of the String in the column.
  • Method Details

    • sortDescending

      void sortDescending()
    • sortAscending

      void sortAscending()
    • getKeyAtIndex

      int getKeyAtIndex(int rowNumber)
      Returns the int that represents the string at rowNumber
    • getValueForKey

      String getValueForKey(int key)
    • size

      int size()
    • getValueForIndex

      String getValueForIndex(int rowIndex)
    • countOccurrences

      int countOccurrences(String value)
    • asSet

      Set<String> asSet()
    • uniqueValuesAt

      default int uniqueValuesAt(int index)
      Returns the number of unique values at or before the given index
    • asIntArray

      default int[] asIntArray()
    • getKeyForIndex

      int getKeyForIndex(int i)
    • firstIndexOf

      int firstIndexOf(String string)
    • asObjectArray

      String[] asObjectArray()
    • selectIsIn

      Selection selectIsIn(String... strings)
    • selectIsIn

      Selection selectIsIn(Collection<String> strings)
    • append

      void append(String value) throws NoKeysAvailableException
      Throws:
      NoKeysAvailableException
    • set

      void set(int rowIndex, String stringValue) throws NoKeysAvailableException
      Throws:
      NoKeysAvailableException
    • clear

      void clear()
    • countUnique

      int countUnique()
    • countByCategory

      Table countByCategory(String columnName)
    • isEqualTo

      Selection isEqualTo(String string)
    • isNotEqualTo

      default Selection isNotEqualTo(String string)
    • getDummies

      List<BooleanColumn> getDummies()
    • asBytes

      byte[] asBytes(int rowNumber)
      Returns the contents of the cell at rowNumber as a byte[]
    • countMissing

      int countMissing()
      Returns the count of missing values in this column
    • iterator

      Iterator<String> iterator()
    • appendMissing

      void appendMissing()
    • isMissing

      boolean isMissing(int rowNumber)
    • promoteYourself

      DictionaryMap promoteYourself()
    • nextKeyWithoutIncrementing

      int nextKeyWithoutIncrementing()