JDBC Driver for JSON

Build 24.0.9175

JSON データソースへの接続

データソースに接続したら、DataModel を設定して、データ表現とデータ構造をより密接に一致させます。

JSON への接続

以下は、本製品 のデフォルトのデータモデリング設定を使用したJSON ファイルまたはストリームへの接続文字列の例です。

サービスプロバイダー URI 形式 接続例
ローカル Single File Path (One table)
file://localPath/file.json
URI=C:/folder1/file.json;
Directory Path (One aggregated table from all files)
file://localPath
HTTP またはHTTPS http://remoteStream
https://remoteStream
URI=http://www.host1.com/streamname1;
Amazon S3 Single File Path (One table)
s3://remotePath/file.json
URI=s3://bucket1/folder1/file.json; AWSSecretKey=secret1; AWSRegion=OHIO;
Directory Path (One aggregated table from all files)
s3://remotePath
Azure Blob Storage azureblob://mycontainer/myblob/file.json URI=azureblob://mycontainer/myblob/file.json; AzureStorageAccount=myAccount; AzureAccessKey=myKey;
URI=azureblob://mycontainer/myblob/file.json; AzureStorageAccount=myAccount; InitiateOAuth=GETANDREFRESH; AuthScheme=OAuth;
Google Drive Single File Path (One table)
gdrive://remotePath/file.json
gdrive://SharedWithMe/remotePath/file.json
URI=gdrive://folder1/file.json;InitiateOAuth=GETANDREFRESH; AuthScheme=OAuth;
URI=gdrive://SharedWithMe/folder1/file.json;InitiateOAuth=GETANDREFRESH; AuthScheme=OAuth;
Directory Path (One aggregated table from all files)
gdrive://remotePath
gdrive://SharedWithMe/remotePath
One Drive Single File Path (One table)
onedrive://remotePath/file.json
onedrive://SharedWithMe/remotePath/file.json
URI=onedrive://folder1/file.json;InitiateOAuth=GETANDREFRESH; AuthScheme=OAuth;
URI=onedrive://SharedWithMe/folder1/file.json;InitiateOAuth=GETANDREFRESH; AuthScheme=OAuth;
Directory Path (One aggregated table from all files)
onedrive://remotePath
onedrive://SharedWithMe/remotePath
Box Single File Path (One table)
box://remotePath/file.json
URI=box://folder1/file.json; InitiateOAuth=GETANDREFRESH; AuthScheme=OAuth;
Directory Path (One aggregated table from all files)
box://remotePath
Dropbox Single File Path (One table)
dropbox://remotePath/file.json
URI=dropbox://folder1/file.json; InitiateOAuth=GETANDREFRESH; AuthScheme=OAuth; OAuthClientId=oauthclientid1; OAuthClientSecret=oauthcliensecret1; CallbackUrl=http://localhost:12345;
Directory Path (One aggregated table from all files)
dropbox://remotePath
SharePoint SOAP Single File Path (One table)
sp://remotePath/file.json
URI=sp://Documents/folder1/file.json; User=user1; Password=password1; StorageBaseURL=https://subdomain.sharepoint.com;
Directory Path (One aggregated table from all files)
sp://remotePath
SharePoint REST Single File Path (One table)
sprest://remotePath/file.json
URI=sprest://Documents/folder1/file.json; InitiateOAuth=GETANDREFRESH; AuthScheme=OAuth; StorageBaseURL=https://subdomain.sharepoint.com;
Directory Path (One aggregated table from all files)
sprest://remotePath
FTP またはFTPS Single File Path (One table)
ftp://server:port/remotePath/file.json
ftps://server:port/remotepath/file.json
URI=ftps://localhost:990/folder1/file.json; User=user1; Password=password1;
Directory Path (One aggregated table from all files)
ftp://server:port/remotePath
ftps://server:port/remotepath;
SFTP Single File Path (One table)
sftp://server:port/remotePath/file.json
URI=sftp://127.0.0.1:22/folder1/file.json; User=user1; Password=password1;
URI=sftp://127.0.0.1:22/folder1/file.json; SSHAuthmode=PublicKey; SSHClientCert=myPrivateKey
Directory Path (One aggregated table from all files)
sftp://server:port/remotePath
Azure Data Lake Store Gen1 adl://remotePath/file.json
adl://Account.azuredatalakestore.net@remotePath/file.json
URI=adl://folder1/file.json; InitiateOAuth=GETANDREFRESH; AuthScheme=OAuth; AzureStorageAccount=myAccount; AzureTenant=tenant;
URI=adl://myAccount.azuredatalakestore.net@folder1/file.json; InitiateOAuth=GETANDREFRESH; AuthScheme=OAuth; AzureTenant=tenant;
Azure Data Lake Store Gen2 abfs://myfilesystem/remotePath/file.json
abfs://[email protected]/remotepath/file.json
URI=abfs://myfilesystem/folder1/file.json; AzureStorageAccount=myAccount; AzureAccessKey=myKey;
URI=abfs://[email protected]/folder1/file.json; AzureAccessKey=myKey;
Azure Data Lake Store Gen2 with SSL abfss://myfilesystem/remotePath/file.json
abfss://[email protected]/remotepath/file.json
URI=abfss://myfilesystem/folder1/file.json; AzureStorageAccount=myAccount; AzureAccessKey=myKey;
URI=abfss://[email protected]/folder1/file.json; AzureAccessKey=myKey;
Wasabi Single File Path (One table)
wasabi://bucket1/remotePath/file.json
URI=wasabi://bucket/folder1/file.json; AccessKey=token1; SecretKey=secret1; Region='us-west-1';
Directory Path (One aggregated table from all files)
wasabi://bucket1/remotePath
Google Cloud Storage Single File Path (One table)
gs://bucket/remotePath/file.json
URI=gs://bucket/folder1/file.json; InitiateOAuth=GETANDREFRESH; AuthScheme=OAuth; ProjectId=test;
Directory Path (One aggregated table from all files)
gs://bucket/remotePath
Oracle Cloud Storage Single File Path (One table)
os://bucket/remotePath/file.json
URI=os://bucket/folder1/file.json; AccessKey='myKey'; SecretKey='mySecretKey'; OracleNameSpace='myNameSpace' Region='us-west-1';
Directory Path (One aggregated table from all files)
os://bucket/remotePath
Azure File Single File Path (One table)
azurefile://fileShare/remotePath/file.json
URI=azurefile://bucket/folder1/file.json; AzureStorageAccount='myAccount'; AzureAccessKey='mySecretKey';
URI=azurefile://bucket/folder1/file.json; AzureStorageAccount='myAccount'; AzureSharedAccessSignature='mySharedAccessSignature';
Directory Path (One aggregated table from all files)
azurefile://fileShare/remotePath
IBM Object Storage Source Single File Path (One table)
ibmobjectstorage://bucket1/remotePath/file.json
URI=ibmobjectstorage://bucket/folder1/file.json; AuthScheme='HMAC'; AccessKey=token1; SecretKey=secret1; Region='eu-gb';
URI=ibmobjectstorage://bucket/folder1/file.json; ApiKey=key1; Region='eu-gb'; AuthScheme=OAuth; InitiateOAuth=GETANDREFRESH;
Directory Path (One aggregated table from all files)
ibmobjectstorage://bucket1/remotePath
Hadoop Distributed File System Single File Path (One table)
webhdfs://host:port/remotePath/file.json
URI=webhdfs://host:port/folder1/file.json
Directory Path (One aggregated table from all files)
webhdfs://host:port/remotePath
Secure Hadoop Distributed File System Single File Path (One table)
webhdfss://host:port/remotePath/file.json
URI=webhdfss://host:port/folder1/file.json
Directory Path (One aggregated table from all files)
webhdfss://host:port/remotePath

JSON データのモデル化

DataModel プロパティは、データをテーブルにどのように表現するかを制御するプロパティです。

  • Document (デフォルト):JSON データのトップレベルのドキュメントビューをモデル化します。本製品 は、ネストされたオブジェクト配列を集約されたJSON オブジェクトとして返します。
  • FlattenedDocuments:ネストされた配列オブジェクトと親オブジェクトを、単一テーブルに暗黙的に結合します。
  • Relational:ネストされたオブジェクト配列を、親ドキュメントにリンクする主キーと外部キーを含む個々の関連テーブルとして表示します。

次のステップ

  • DataModel の設定でデータセットをクエリする方法の例については、階層データの解析 を参照してください。
  • スキーマ検出のカスタマイズとJSON へのSQL の実行方法については、JSON データのモデリング を参照してください。
  • 高度な接続設定については、データアクセスのファインチューニング を参照してください。データモデリングの設定を微調整したり、ファイアウォールを介して接続したり、接続のトラブルシューティングを行います。

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 24.0.9175