public class ProjectionMap
extends java.lang.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<java.lang.Integer,ProjectionMap.Column> mapFields,
java.util.List<Pair<java.lang.Integer,java.lang.Integer>> removedFields,
java.util.List<java.lang.Integer> addedFields) |
Modifier and Type | Method and Description |
---|---|
boolean |
changes() |
java.util.List<java.lang.Integer> |
getAddedFields() |
boolean |
getChanges() |
MultiMap<java.lang.Integer,ProjectionMap.Column> |
getMappedFields() |
java.util.List<Pair<java.lang.Integer,java.lang.Integer>> |
getRemovedFields() |
void |
setAddedFields(java.util.List<java.lang.Integer> fields) |
void |
setChanges(boolean changes) |
void |
setMappedFields(MultiMap<java.lang.Integer,ProjectionMap.Column> fields) |
void |
setRemovedFields(java.util.List<Pair<java.lang.Integer,java.lang.Integer>> fields) |
java.lang.String |
toString() |
public ProjectionMap(boolean changes)
changes
- to indicate if this projection map changes its input or notpublic ProjectionMap(MultiMap<java.lang.Integer,ProjectionMap.Column> mapFields, java.util.List<Pair<java.lang.Integer,java.lang.Integer>> removedFields, java.util.List<java.lang.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<java.lang.Integer,ProjectionMap.Column> getMappedFields()
public void setMappedFields(MultiMap<java.lang.Integer,ProjectionMap.Column> fields)
fields
- the mapping of input column to output columnpublic java.util.List<Pair<java.lang.Integer,java.lang.Integer>> getRemovedFields()
public void setRemovedFields(java.util.List<Pair<java.lang.Integer,java.lang.Integer>> fields)
fields
- the list of input columns that are removedpublic java.util.List<java.lang.Integer> getAddedFields()
public void setAddedFields(java.util.List<java.lang.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 notpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007-2012 The Apache Software Foundation