Class PartitionKey

  • All Implemented Interfaces:, StructLike

    public class PartitionKey
    extends java.lang.Object
    implements StructLike,
    A struct of partition values.

    Instances of this class can produce partition values from a data row passed to partition(StructLike).

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PartitionKey copy()  
      boolean equals​(java.lang.Object o)  
      <T> T get​(int pos, java.lang.Class<T> javaClass)  
      int hashCode()  
      void partition​(StructLike row)
      Replace this key's partition values with the partition values for the row.
      <T> void set​(int pos, T value)  
      int size()  
      java.lang.String toPath()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • toPath

        public java.lang.String toPath()
      • partition

        public void partition​(StructLike row)
        Replace this key's partition values with the partition values for the row.
        row - a StructLike row
      • size

        public int size()
        Specified by:
        size in interface StructLike
      • get

        public <T> T get​(int pos,
                         java.lang.Class<T> javaClass)
        Specified by:
        get in interface StructLike
      • set

        public <T> void set​(int pos,
                            T value)
        Specified by:
        set in interface StructLike
      • equals

        public boolean equals​(java.lang.Object o)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object