org.apache.hadoop.hive.ql.exec.persistence
Class MapJoinKeyBytes
java.lang.Object
org.apache.hadoop.hive.ql.exec.persistence.MapJoinKey
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.
MapJoinKeyBytes
public MapJoinKeyBytes()
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.