Package org.apache.druid.data.input.impl
Class TimestampSpec
- java.lang.Object
-
- org.apache.druid.data.input.impl.TimestampSpec
-
public class TimestampSpec extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_COLUMN
-
Constructor Summary
Constructors Constructor Description TimestampSpec(String timestampColumn, String format, org.joda.time.DateTime missingValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)org.joda.time.DateTimeextractTimestamp(Map<String,Object> input)org.joda.time.DateTimegetMissingValue()ObjectgetRawTimestamp(Map<String,Object> input)StringgetTimestampColumn()StringgetTimestampFormat()inthashCode()static TimestampSpecmergeTimestampSpec(List<TimestampSpec> toMerge)org.joda.time.DateTimeparseDateTime(Object input)StringtoString()
-
-
-
Field Detail
-
DEFAULT_COLUMN
public static final String DEFAULT_COLUMN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTimestampColumn
public String getTimestampColumn()
-
getTimestampFormat
public String getTimestampFormat()
-
getMissingValue
public org.joda.time.DateTime getMissingValue()
-
extractTimestamp
@Nullable public org.joda.time.DateTime extractTimestamp(@Nullable Map<String,Object> input)
-
mergeTimestampSpec
public static TimestampSpec mergeTimestampSpec(List<TimestampSpec> toMerge)
-
-