public class ProjectionMap extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProjectionMap.Column
A wrapper for projection map columns to contain the input number, input
column.
|
Constructor and Description |
---|
ProjectionMap(boolean changes) |
ProjectionMap(MultiMap<Integer,ProjectionMap.Column> mapFields,
List<Pair<Integer,Integer>> removedFields,
List<Integer> addedFields) |
Modifier and Type | Method and Description |
---|---|
boolean |
changes() |
List<Integer> |
getAddedFields() |
boolean |
getChanges() |
MultiMap<Integer,ProjectionMap.Column> |
getMappedFields() |
List<Pair<Integer,Integer>> |
getRemovedFields() |
void |
setAddedFields(List<Integer> fields) |
void |
setChanges(boolean changes) |
void |
setMappedFields(MultiMap<Integer,ProjectionMap.Column> fields) |
void |
setRemovedFields(List<Pair<Integer,Integer>> fields) |
String |
toString() |
public ProjectionMap(boolean changes)
changes
- to indicate if this projection map changes its input or notpublic ProjectionMap(MultiMap<Integer,ProjectionMap.Column> mapFields, List<Pair<Integer,Integer>> removedFields, List<Integer> addedFields)
mapFields
- the mapping of input column to output columnremovedFields
- the list of input columns that are removedaddedFields
- the list of columns that are added to the outputpublic MultiMap<Integer,ProjectionMap.Column> getMappedFields()
public void setMappedFields(MultiMap<Integer,ProjectionMap.Column> fields)
fields
- the mapping of input column to output columnpublic List<Pair<Integer,Integer>> getRemovedFields()
public void setRemovedFields(List<Pair<Integer,Integer>> fields)
fields
- the list of input columns that are removedpublic List<Integer> getAddedFields()
public void setAddedFields(List<Integer> fields)
fields
- the list of columns that are added to the outputpublic boolean changes()
public boolean getChanges()
public void setChanges(boolean changes)
changes
- if this projection map changes its input or notCopyright © 2007-2017 The Apache Software Foundation