Interface PartitionSpecVisitor<T>


public interface PartitionSpecVisitor<T>
  • Method Details

    • identity

      default T identity(int fieldId, String sourceName, int sourceId)
    • identity

      default T identity(String sourceName, int sourceId)
    • bucket

      default T bucket(int fieldId, String sourceName, int sourceId, int numBuckets)
    • bucket

      default T bucket(String sourceName, int sourceId, int numBuckets)
    • truncate

      default T truncate(int fieldId, String sourceName, int sourceId, int width)
    • truncate

      default T truncate(String sourceName, int sourceId, int width)
    • year

      default T year(int fieldId, String sourceName, int sourceId)
    • year

      default T year(String sourceName, int sourceId)
    • month

      default T month(int fieldId, String sourceName, int sourceId)
    • month

      default T month(String sourceName, int sourceId)
    • day

      default T day(int fieldId, String sourceName, int sourceId)
    • day

      default T day(String sourceName, int sourceId)
    • hour

      default T hour(int fieldId, String sourceName, int sourceId)
    • hour

      default T hour(String sourceName, int sourceId)
    • alwaysNull

      default T alwaysNull(int fieldId, String sourceName, int sourceId)
    • unknown

      default T unknown(int fieldId, String sourceName, int sourceId, String transform)
    • visit

      static <R> List<R> visit(PartitionSpec spec, PartitionSpecVisitor<R> visitor)
      Visit the fields of a PartitionSpec.
      Type Parameters:
      R - return type of the visitor
      Parameters:
      spec - a partition spec to visit
      visitor - a partition spec visitor
      Returns:
      a list of the result produced by visiting each partition field
    • visit

      static <R> R visit(Schema schema, PartitionField field, PartitionSpecVisitor<R> visitor)