Modifier and Type | Method and Description |
---|---|
com.aliyun.odps.Streams.Builder |
builder(StreamIdentifier identifier,
TableIdentifier refTable) |
void |
create(StreamIdentifier identifier,
TableIdentifier refTable)
创建一个stream,默认使用表的初始版本
|
void |
create(StreamIdentifier identifier,
TableIdentifier refTable,
boolean ifNotExists,
String timestamp,
Long version,
com.aliyun.odps.Streams.ReadMode readMode,
String comment) |
void |
delete(String streamName) |
void |
delete(String streamName,
boolean ifExists) |
void |
delete(String projectName,
String streamName,
boolean ifExists) |
boolean |
exists(StreamIdentifier identifier) |
boolean |
exists(String streamName)
判断指定表是否存在
|
boolean |
exists(String projectName,
String streamName)
判断指定表是否存在
|
Stream |
get(StreamIdentifier identifier) |
Stream |
get(String streamName) |
Stream |
get(String projectName,
String streamName) |
Iterator<Stream> |
iterator() |
Iterator<Stream> |
iterator(String projectName) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Stream get(StreamIdentifier identifier)
public boolean exists(String streamName) throws OdpsException
streamName
- 表名OdpsException
public boolean exists(StreamIdentifier identifier) throws OdpsException
OdpsException
public boolean exists(String projectName, String streamName) throws OdpsException
projectName
- 所在Project
名称streamName
- 表名OdpsException
public void create(StreamIdentifier identifier, TableIdentifier refTable) throws OdpsException
identifier
- stream信息StreamIdentifier
refTable
- stream关联的ACID源表TableIdentifier
OdpsException
public void create(StreamIdentifier identifier, TableIdentifier refTable, boolean ifNotExists, String timestamp, Long version, com.aliyun.odps.Streams.ReadMode readMode, String comment) throws OdpsException
identifier
- stream信息StreamIdentifier
refTable
- stream关联的ACID源表TableIdentifier
ifNotExists
- true表示如果表已经存在,则不抛出异常,否则抛出异常timestamp
- 内部LSN序号, 代表Stream对象创建时VersionOffset初始化数据版本为t,查询范围为(t, 最新增量数据版本]version
- MC标准的TIMESTAMP/DATETIME/DATE类型格式, 代表Stream对象创建时VersionOffset初始化数据版本为v,查询范围为(v, 最新增量数据版本]readMode
- CDC模式或Append模式,目前仅支持Append模式comment
- 注释OdpsException
- if sql task run failedpublic void delete(String streamName) throws OdpsException
OdpsException
public void delete(String streamName, boolean ifExists) throws OdpsException
OdpsException
public void delete(String projectName, String streamName, boolean ifExists) throws OdpsException
OdpsException
public com.aliyun.odps.Streams.Builder builder(StreamIdentifier identifier, TableIdentifier refTable)
Copyright © 2024 Alibaba Cloud Computing. All rights reserved.