com.datasalt.pangool.tuplemr
Class Aliases

java.lang.Object
  extended by com.datasalt.pangool.tuplemr.Aliases

public class Aliases
extends Object

Builder that contains pairs of (alias, referenced_item). Used in any place that an item must be referenced with a different name. Used in TupleMRConfigBuilder.setFieldAliases(String, Aliases)


Constructor Summary
Aliases()
           
Aliases(Map<String,String> aliases)
           
 
Method Summary
 Aliases add(String alias, String reference)
          Adds an alias
 Map<String,String> getAliases()
           
static Aliases parse(org.codehaus.jackson.JsonNode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Aliases

public Aliases(Map<String,String> aliases)

Aliases

public Aliases()
Method Detail

add

public Aliases add(String alias,
                   String reference)
Adds an alias

Parameters:
alias -
reference -

getAliases

public Map<String,String> getAliases()
Returns:
The map containing alias as keys,and referenced items as values.

parse

public static Aliases parse(org.codehaus.jackson.JsonNode node)
                     throws IOException
Throws:
IOException


Copyright © –2014 Datasalt Systems S.L.. All rights reserved.