org.apache.pig.data.utils
Class StructuresHelper.SchemaKey

java.lang.Object
  extended by org.apache.pig.data.utils.StructuresHelper.SchemaKey
Enclosing class:
StructuresHelper

public static class StructuresHelper.SchemaKey
extends Object

This encapsulates a Schema and allows it to be used in such a way that any aliases are ignored in equality.


Constructor Summary
StructuresHelper.SchemaKey(Schema s)
           
 
Method Summary
 boolean equals(Object o)
           
 Schema get()
           
 int hashCode()
          The hashcode logic is taken from the Schema class, including how fields are handled.
static int hashCode(Schema s)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StructuresHelper.SchemaKey

public StructuresHelper.SchemaKey(Schema s)
Method Detail

hashCode

public int hashCode()
The hashcode logic is taken from the Schema class, including how fields are handled. The difference is that aliases are ignored.

Overrides:
hashCode in class Object

hashCode

public static int hashCode(Schema s)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

get

public Schema get()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012 The Apache Software Foundation