Enum Class TableCapability
- All Implemented Interfaces:
Serializable
,Comparable<TableCapability>
,Constable
Table
implementation.
Tables use Table.capabilities()
to return a set of capabilities. Each capability signals
to Spark that the table supports a feature identified by the capability. For example, returning
BATCH_READ
allows Spark to read from the table using a batch scan.
- Since:
- 3.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSignals that the table accepts input of any schema in a write operation.Signals that the table supports reads in batch execution mode.Signals that the table supports append writes in batch execution mode.Signals that the table supports reads in continuous streaming execution mode.Signals that the table supports reads in micro-batch streaming execution mode.Signals that the table can replace existing data that matches a filter with appended data in a write operation.Signals that the table can dynamically replace existing data partitions with appended data in a write operation.Signals that the table supports append writes in streaming execution mode.Signals that the table can be truncated in a write operation.Signals that the table supports append writes using the V1 InsertableRelation interface. -
Method Summary
Modifier and TypeMethodDescriptionstatic TableCapability
Returns the enum constant of this class with the specified name.static TableCapability[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
BATCH_READ
Signals that the table supports reads in batch execution mode. -
MICRO_BATCH_READ
Signals that the table supports reads in micro-batch streaming execution mode. -
CONTINUOUS_READ
Signals that the table supports reads in continuous streaming execution mode. -
BATCH_WRITE
Signals that the table supports append writes in batch execution mode.Tables that return this capability must support appending data and may also support additional write modes, like
TRUNCATE
,OVERWRITE_BY_FILTER
, andOVERWRITE_DYNAMIC
. -
STREAMING_WRITE
Signals that the table supports append writes in streaming execution mode.Tables that return this capability must support appending data and may also support additional write modes, like
TRUNCATE
,OVERWRITE_BY_FILTER
, andOVERWRITE_DYNAMIC
. -
TRUNCATE
Signals that the table can be truncated in a write operation.Truncating a table removes all existing rows.
See
SupportsTruncate
. -
OVERWRITE_BY_FILTER
Signals that the table can replace existing data that matches a filter with appended data in a write operation.See
SupportsOverwriteV2
. -
OVERWRITE_DYNAMIC
Signals that the table can dynamically replace existing data partitions with appended data in a write operation. -
ACCEPT_ANY_SCHEMA
Signals that the table accepts input of any schema in a write operation. -
V1_BATCH_WRITE
Signals that the table supports append writes using the V1 InsertableRelation interface.Tables that return this capability must create a V1Write and may also support additional write modes, like
TRUNCATE
, andOVERWRITE_BY_FILTER
, but cannot supportOVERWRITE_DYNAMIC
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-