public class DefaultPartTimeExtractor extends Object implements PartitionTimeExtractor
CUSTOM, DEFAULT
Constructor and Description |
---|
DefaultPartTimeExtractor(String pattern) |
Modifier and Type | Method and Description |
---|---|
java.time.LocalDateTime |
extract(List<String> partitionKeys,
List<String> partitionValues)
Extract time from partition keys and values.
|
static java.time.LocalDateTime |
toLocalDateTime(String timestampString) |
static long |
toMills(java.time.LocalDateTime dateTime) |
static long |
toMills(String timestampString) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public java.time.LocalDateTime extract(List<String> partitionKeys, List<String> partitionValues)
PartitionTimeExtractor
extract
in interface PartitionTimeExtractor
public static java.time.LocalDateTime toLocalDateTime(String timestampString)
public static long toMills(java.time.LocalDateTime dateTime)
public static long toMills(String timestampString)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.