@InterfaceStability.Unstable public class TableSpec extends java.lang.Object implements java.io.Serializable
TableDescriptor
, and then invoke
BaseTableDescriptor.getTableSpec()
.
It has specific attributes for common behaviors that Samza uses.
It has the table provider factory, which provides the actual table implementation.
It also includes a map of configurations which may be implementation-specific.
It is immutable by design.Constructor and Description |
---|
TableSpec()
Default constructor
|
TableSpec(java.lang.String tableId,
KVSerde serde,
java.lang.String tableProviderFactoryClassName,
java.util.Map<java.lang.String,java.lang.String> config)
Constructs a
TableSpec |
TableSpec(java.lang.String tableId,
KVSerde serde,
java.lang.String tableProviderFactoryClassName,
java.util.Map<java.lang.String,java.lang.String> config,
java.util.List<java.lang.String> sideInputs,
SideInputsProcessor sideInputsProcessor)
Constructs a
TableSpec |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Map<java.lang.String,java.lang.String> |
getConfig()
Get implementation configuration for the table
|
java.lang.String |
getId()
Get the Id of the table
|
<K,V> KVSerde<K,V> |
getSerde()
Get the serde
|
java.util.List<java.lang.String> |
getSideInputs()
Get the list of side inputs for the table.
|
SideInputsProcessor |
getSideInputsProcessor()
Get the
SideInputsProcessor associated with the table. |
java.lang.String |
getTableProviderFactoryClassName()
Get the class name of the table provider factory
|
int |
hashCode() |
public TableSpec()
public TableSpec(java.lang.String tableId, KVSerde serde, java.lang.String tableProviderFactoryClassName, java.util.Map<java.lang.String,java.lang.String> config)
TableSpec
tableId
- Id of the tabletableProviderFactoryClassName
- table provider factoryserde
- the serdeconfig
- implementation specific configurationpublic TableSpec(java.lang.String tableId, KVSerde serde, java.lang.String tableProviderFactoryClassName, java.util.Map<java.lang.String,java.lang.String> config, java.util.List<java.lang.String> sideInputs, SideInputsProcessor sideInputsProcessor)
TableSpec
tableId
- Id of the tabletableProviderFactoryClassName
- table provider factoryserde
- the serdeconfig
- implementation specific configurationsideInputs
- list of side inputs for the tablesideInputsProcessor
- side input processor for the tablepublic java.lang.String getId()
public <K,V> KVSerde<K,V> getSerde()
K
- the type of the keyV
- the type of the valuepublic java.lang.String getTableProviderFactoryClassName()
public java.util.Map<java.lang.String,java.lang.String> getConfig()
public java.util.List<java.lang.String> getSideInputs()
List
of side input streamspublic SideInputsProcessor getSideInputsProcessor()
SideInputsProcessor
associated with the table.SideInputsProcessor
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object