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 interfaceIRowMapping.IWritableRowMappingThe modifiable mapping.
-
Field Summary
Fields Modifier and Type Field Description static intNO_ROWThe empty value of the mapping.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Runnabledestroy()Destroys the mapping.intget(int row)Gets the mapped row.intgetOrDefault(int row, int defaultValue)Gets the mapped row or returns the default value if not mapped.intsize()Gets the maximum number of mapped rows.-
Methods inherited from interface com.qfs.monitoring.memory.IMemoryMonitored
getMemoryStatistic
-
-
-
-
Field Detail
-
NO_ROW
static final int NO_ROW
The empty value of the mapping.- See Also:
- Constant Field Values
-
-
Method Detail
-
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 rowdefaultValue- the default value- Returns:
- the mapped row
-
size
int size()
Gets the maximum number of mapped rows.- Returns:
- the maximum number of mapped rows
-
-