Package com.qfs.chunk
Interface IRowMapping
- All Superinterfaces:
IMemoryMonitored
- All Known Subinterfaces:
IRowMapping.IWritableRowMapping
- All Known Implementing Classes:
ColumnIntegerRowMapping,HashMapRowMapping,IdentityRowMapping
Mapping between rows numbers. Basically it is an Int-Int map.
- Author:
- ActiveViam
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe modifiable mapping. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondestroy()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 Details
-
NO_ROW
static final int NO_ROWThe empty value of the mapping.- See Also:
-
-
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 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
-
destroy
Runnable destroy()Destroys the mapping.- Returns:
- the
Runnableto run to actually destroy the data
-