Package com.qfs.chunk

Interface IRowMapping

All Superinterfaces:
IMemoryMonitored
All Known Subinterfaces:
IRowMapping.IWritableRowMapping
All Known Implementing Classes:
ColumnIntegerRowMapping, HashMapRowMapping, IdentityRowMapping

public interface IRowMapping extends IMemoryMonitored
Mapping between rows numbers. Basically it is an Int-Int map.
Author:
ActiveViam
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    The modifiable mapping.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The empty value of the mapping.
  • Method Summary

    Modifier and Type
    Method
    Description
    Destroys the mapping.
    int
    get(int row)
    Gets the mapped row.
    int
    getOrDefault(int row, int defaultValue)
    Gets the mapped row or returns the default value if not mapped.
    int
    Gets the maximum number of mapped rows.

    Methods inherited from interface com.qfs.monitoring.memory.IMemoryMonitored

    getMemoryStatistic
  • Field Details

  • Method Details

    • get

      int get(int row)
      Gets the mapped row.
      Parameters:
      row - the row
      Returns:
      the mapped value
      Throws:
      DiscardedDataException - if this row does not exist
    • getOrDefault

      int getOrDefault(int row, int defaultValue)
      Gets the mapped row or returns the default value if not mapped.
      Parameters:
      row - the row
      defaultValue - the default value
      Returns:
      the mapped row
    • size

      int size()
      Gets the maximum number of mapped rows.
      Returns:
      the maximum number of mapped rows
    • destroy

      Runnable destroy()
      Destroys the mapping.
      Returns:
      the Runnable to run to actually destroy the data