org.apache.hadoop.hive.ql.exec.persistence
Class MapJoinKeyBytes

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.persistence.MapJoinKey
      extended by org.apache.hadoop.hive.ql.exec.persistence.MapJoinKeyBytes

public class MapJoinKeyBytes
extends MapJoinKey

Size-optimized implementation of MapJoinKeyBase. MJK only needs to support equality and hashCode, so for simple cases we can write the requisite writables that are part of the key into byte array and retain the functionality without storing the writables themselves.


Constructor Summary
MapJoinKeyBytes()
           
 
Method Summary
 boolean equals(Object obj)
           
static MapJoinKey fromBytes(MapJoinKey key, boolean mayReuseKey, byte[] structBytes)
           
 boolean hasAnyNulls(int fieldCount, boolean[] nullsafes)
           
 int hashCode()
           
 void write(MapJoinObjectSerDeContext context, ObjectOutputStream out)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.persistence.MapJoinKey
read, readFromRow, readFromVector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapJoinKeyBytes

public MapJoinKeyBytes()
Method Detail

write

public void write(MapJoinObjectSerDeContext context,
                  ObjectOutputStream out)
Specified by:
write in class MapJoinKey

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

hasAnyNulls

public boolean hasAnyNulls(int fieldCount,
                           boolean[] nullsafes)
Specified by:
hasAnyNulls in class MapJoinKey

fromBytes

public static MapJoinKey fromBytes(MapJoinKey key,
                                   boolean mayReuseKey,
                                   byte[] structBytes)


Copyright © 2014 The Apache Software Foundation. All rights reserved.