com
.
rouesnel
.
typedsql
HiveQueryDataSource
Related Doc:
package typedsql
case class
HiveQueryDataSource
[
T <:
ThriftStruct
,
P
]
(
query:
String
,
parameters:
Map
[
String
,
String
]
,
sources:
Map
[
String
,
DataSource
[_, _]]
,
udfs:
Map
[(
String
,
String
),
Class
[
GenericUDF
]]
,
hiveViewName:
Option
[
String
] =
None
,
hiveTableName:
Option
[
String
] =
None
,
hdfsPath:
Option
[
String
] =
None
)
(
implicit
evidence$22:
Manifest
[
T
]
,
evidence$23:
HasStructType
[
T
]
,
evidence$24:
Partitions
[
P
]
)
extends
DataSource
[
T
,
P
] with
HiveViewSource
[
T
,
P
] with
PersistableSource
[
T
,
P
] with
Product
with
Serializable
Compiled and parameterised Hive query with defined sources.
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
,
PersistableSource
[
T
,
P
],
HiveViewSource
[
T
,
P
],
DataSource
[
T
,
P
],
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
HiveQueryDataSource
Serializable
Serializable
Product
Equals
PersistableSource
HiveViewSource
DataSource
AnyRef
Any
Hide All
Show all
Visibility
Public
All
Instance Constructors
new
HiveQueryDataSource
(
query:
String
,
parameters:
Map
[
String
,
String
]
,
sources:
Map
[
String
,
DataSource
[_, _]]
,
udfs:
Map
[(
String
,
String
),
Class
[
GenericUDF
]]
,
hiveViewName:
Option
[
String
] =
None
,
hiveTableName:
Option
[
String
] =
None
,
hdfsPath:
Option
[
String
] =
None
)
(
implicit
arg0:
Manifest
[
T
]
,
arg1:
HasStructType
[
T
]
,
arg2:
Partitions
[
P
]
)
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
(
...
)
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getUpstreamUdfs
()
:
Map
[(
String
,
String
),
Class
[
GenericUDF
]]
def
hasStructType
:
HasStructType
[
T
]
Definition Classes
HiveQueryDataSource
→
PersistableSource
val
hdfsPath
:
Option
[
String
]
val
hiveTableName
:
Option
[
String
]
val
hiveViewName
:
Option
[
String
]
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
manifest
:
Manifest
[
T
]
Definition Classes
HiveQueryDataSource
→
PersistableSource
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
val
parameters
:
Map
[
String
,
String
]
def
persist
(
strategy:
Strategy
[
T
,
P
]
)
:
PersistedDataSource
[
T
,
P
]
Definition Classes
PersistableSource
val
query
:
String
def
runQuery
(
driver:
Driver
)
(
query:
String
,
msg:
String
=
""
)
:
Unit
val
sources
:
Map
[
String
,
DataSource
[_, _]]
def
structType
:
StructType
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toHiveTable
(
config:
Config
)
:
Execution
[
MaterialisedHiveTable
[
T
,
P
]]
Definition Classes
HiveQueryDataSource
→
DataSource
def
toHiveView
(
config:
Config
)
:
Execution
[
HiveView
[
T
,
P
]]
Definition Classes
HiveQueryDataSource
→
HiveViewSource
def
toTypedPipe
(
config:
Config
)
:
Execution
[
TypedPipe
[
T
]]
Definition Classes
HiveQueryDataSource
→
DataSource
val
udfs
:
Map
[(
String
,
String
),
Class
[
GenericUDF
]]
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
(
...
)
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from
PersistableSource
[
T
,
P
]
Inherited from
HiveViewSource
[
T
,
P
]
Inherited from
DataSource
[
T
,
P
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped
Compiled and parameterised Hive query with defined sources.