object RefinedTypes
- Alphabetic
- By Inheritance
- RefinedTypes
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type AccuracyDouble = Refined[Double, OpenClosed[Double(0.0), Double(1.0)]]
-
case class
DateFormat(pattern: String) extends Product with Serializable
DateFormat class is used to store both date-time pattern and corresponding formatter.
DateFormat class is used to store both date-time pattern and corresponding formatter. Such construction allows to verify if pattern is convertable to formatter at the point of configuration reading and also supports backwards conversion (when writing configuration). The issue with backwards conversion is due to DateTimeFormatter does not store string representation of original datetime pattern.
- pattern
- datetime pattern string
- Note
DataTimeFormatter is not serializable, therefore, it is marked as @transient to avoid serialization errors in Spark Tasks.
- type DoubleElemStringSeq = Refined[Seq[String], Size[Equal[Int(2)]]]
-
case class
Email(value: String) extends Product with Serializable
Email class is used to wrap email addresses and provide email validation during configuration parsing.
Email class is used to wrap email addresses and provide email validation during configuration parsing.
- value
Validated email address
-
type
EncryptionKey = Refined[String, MatchesRegex[String("^.{32}.*$")]]
Refinement for string holding secret key for sensitive data encryption.
Refinement for string holding secret key for sensitive data encryption. This string should contain at least 32 characters.
- type FixedShortColumn = Refined[String, MatchesRegex[String("^[^\\n\\r\\t:]+:\\d+$")]]
-
case class
ID(value: String) extends Product with Serializable
All IDs are parsers via SparkSqlParser so they are valid SparkSQL identifiers This is required to eliminate any issues with interoperability with Spark.
All IDs are parsers via SparkSqlParser so they are valid SparkSQL identifiers This is required to eliminate any issues with interoperability with Spark. For example, source IDs can be used to create virtual source: in this case parent source are registered as temporary views in Spark.
- value
Validated ID value
- type MMRecipient = Refined[String, MatchesRegex[String("^(@|#)[a-zA-Z][a-zA-Z0-9.\\-_]+$")]]
- type MultiElemStringSeq = Refined[Seq[String], MinSize[Int(2)]]
-
type
NonEmptyDoubleSeq = Refined[Seq[Double], NonEmpty]
Refinements for numeric sequences:
-
type
NonEmptyStringSeq = Refined[Seq[String], NonEmpty]
Various refinements for string sequences:
- type NonEmptyURISeq = Refined[Seq[URI], NonEmpty]
- type PercentileDouble = Refined[Double, Closed[Double(0.0), Double(1.0)]]
- type Port = Refined[Int, Closed[Int(0), Int(9999)]]
- type PositiveInt = Refined[Int, Positive]
- type RegexPattern = Refined[String, Regex]
- type SingleElemStringSeq = Refined[Seq[String], Size[Equal[Int(1)]]]
- type SparkParam = Refined[String, MatchesRegex[String("^\\S+?\\=[\\S\\s]+$")]]
- type ThreeElemIntSeq = Refined[Seq[Int], Size[Equal[Int(3)]]]
- type URI = Refined[String, Uri]
- type URL = Refined[String, Url]
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[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()