Class RowMapper.Mapping
Object
Mapping
- Enclosing interface:
- RowMapper
-
Method Summary
Modifier and TypeMethodDescription<T> ValueColumn<Long,T> createMappedResultColumn(ValueColumn<Long, T> actualColumn) LongLongHppcOpenHashMapgetMap()LongListLongListstatic RowMapper.Mappingidentical(LongList rows) booleanisMapped()static RowMapper.Mappingmapped(LongList rows, LongList mappedRows, LongLongHppcOpenHashMap map)
-
Method Details
-
identical
-
mapped
public static RowMapper.Mapping mapped(LongList rows, LongList mappedRows, LongLongHppcOpenHashMap map) -
getRequestedRows
public LongList getRequestedRows() -
getMappedRows
public LongList getMappedRows()- Returns:
- a mapped list of requested row. If a row was mapped, the mapped row ID is present instead of the requested ID. IF row mapped to nothing, nothing is present. Otherwise, if row was not mapped (present in the forest), the requested row ID is present.
-
getMap
@Nullable public LongLongHppcOpenHashMap getMap()- Returns:
- a map with entries for the rows that are mapped to other rows -- rows that mapped to nothing (0) are not present, as well as rows that were mapped to themselves Returns null when no mapping was made
-
isMapped
public boolean isMapped() -
createMappedResultColumn
@NotNull public <T> ValueColumn<Long,T> createMappedResultColumn(@Nullable ValueColumn<Long, T> actualColumn)
-