Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
noosc committed May 21, 2019
1 parent 2a1934b commit 4f92ea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/tutorial.rst
Expand Up @@ -29,8 +29,8 @@ Datahub Python SDK提供的所有API接口均由 ``datahub.DataHub`` 类实现
access_id = ***your access id***
access_key = ***your access key***
endpoint = ***your datahub server endpoint***
dh = DataHub(access_id, access_key, endpoint) # default mode: not support protobuf for datahub <= 2.11
dh = DataHub(access_id, access_key, endpoint, enable_pb=True) # support protobuf when put/get record, for datahub > 2.11
dh = DataHub(access_id, access_key, endpoint, enable_pb=False) # Json mode: for datahub server version <= 2.11
dh = DataHub(access_id, access_key, endpoint) # Use protobuf when put/get record, for datahub server version > 2.11
dh = DataHub(access_id, access_key, endpoint, compress_format=CompressFormat.LZ4) # use lz4 compression when put/get record
更多详细定义:
Expand Down

0 comments on commit 4f92ea6

Please sign in to comment.