class TimestampOptionTypeConverter extends BaseOptionTypeConverter[Long]
Implementation of OptionTypeConverter that converts values for
DeltaConfigOption from String Date/Datetime to its timestamp representation in long.
- Alphabetic
- By Inheritance
- TimestampOptionTypeConverter
- BaseOptionTypeConverter
- OptionTypeConverter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TimestampOptionTypeConverter()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
convertType[T](desiredOption: DeltaConfigOption[T], valueToConvert: String): T
Converts String value of
DeltaConfigOptionthat represents Date or Datetime to its timestamp long representation.Converts String value of
DeltaConfigOptionthat represents Date or Datetime to its timestamp long representation. The implementation usesTimestampFormatConverterfor conversion. SeeTimestampFormatConverter#convertToTimestamp(String)for details about allowed formats.- desiredOption
The
DeltaConfigOptioninstance we want to do the conversion for.- valueToConvert
String representing date or datetime.
- returns
A timestamp representation of valueToConvert returned as long value.
- Definition Classes
- TimestampOptionTypeConverter → OptionTypeConverter
- Annotations
- @SuppressWarnings() @Override()
- Exceptions thrown
IllegalArgumentExceptionin case of conversion failure.
-
def
convertType[T](desiredOption: DeltaConfigOption[T], valueToConvert: Boolean): T
Converts a Boolean valueToConvert to desired type of
DeltaConfigOption#getValueType().Converts a Boolean valueToConvert to desired type of
DeltaConfigOption#getValueType().- desiredOption
A
DeltaConfigOptionto which type the valueToConvert parameter should be converted.- valueToConvert
A valueToConvert that type should be converted.
- returns
valueToConvert with converted type to
DeltaConfigOption#getValueType().
- Definition Classes
- BaseOptionTypeConverter → OptionTypeConverter
- Annotations
- @Override()
-
def
convertType[T](desiredOption: DeltaConfigOption[T], valueToConvert: Long): T
Converts a Long valueToConvert to desired type of
DeltaConfigOption#getValueType().Converts a Long valueToConvert to desired type of
DeltaConfigOption#getValueType().- desiredOption
A
DeltaConfigOptionto which type the valueToConvert parameter should be converted.- valueToConvert
A valueToConvert that type should be converted.
- returns
valueToConvert with converted type to
DeltaConfigOption#getValueType().
- Definition Classes
- BaseOptionTypeConverter → OptionTypeConverter
- Annotations
- @Override()
-
def
convertType[T](desiredOption: DeltaConfigOption[T], valueToConvert: Integer): T
Converts an Integer valueToConvert to desired type of
DeltaConfigOption#getValueType().Converts an Integer valueToConvert to desired type of
DeltaConfigOption#getValueType().- desiredOption
A
DeltaConfigOptionto which type the valueToConvert parameter should be converted.- valueToConvert
A valueToConvert that type should be converted.
- returns
valueToConvert with converted type to
DeltaConfigOption#getValueType().
- Definition Classes
- BaseOptionTypeConverter → OptionTypeConverter
- Annotations
- @Override()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()