class GlobalTempViewManager extends AnyRef
A thread-safe manager for global temporary views, providing atomic operations to manage them, e.g. create, update, remove, etc.
Note that, the view name is always case-sensitive here, callers are responsible to format the view name w.r.t. case-sensitive config.
- Alphabetic
- By Inheritance
- GlobalTempViewManager
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
GlobalTempViewManager(database: String)
- database
The system preserved virtual database that keeps all the global temporary views.
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
clear(): Unit
Clears all the global temporary views.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
create(name: String, viewDefinition: LogicalPlan, overrideIfExists: Boolean): Unit
Creates a global temp view, or issue an exception if the view already exists and
overrideIfExistsis false. - val database: String
-
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] )
-
def
get(name: String): Option[LogicalPlan]
Returns the global view definition which matches the given name, or None if not found.
-
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
-
def
listViewNames(pattern: String): Seq[String]
Lists the names of all global temporary views.
-
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()
-
def
remove(name: String): Boolean
Removes the global temp view if it exists, returns true if removed, false otherwise.
-
def
rename(oldName: String, newName: String): Boolean
Renames the global temp view if the source view exists and the destination view not exists, or issue an exception if the source view exists but the destination view already exists.
Renames the global temp view if the source view exists and the destination view not exists, or issue an exception if the source view exists but the destination view already exists. Returns true if renamed, false otherwise.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
update(name: String, viewDefinition: LogicalPlan): Boolean
Updates the global temp view if it exists, returns true if updated, false otherwise.
-
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()