Package com.cognite.client.servicesV1
Class ConnectorServiceV1.ThreeDFileBinaryReader
java.lang.Object
com.cognite.client.servicesV1.ConnectorServiceV1.ConnectorBase
com.cognite.client.servicesV1.ConnectorServiceV1.ThreeDFileBinaryReader
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ConnectorServiceV1
public abstract static class ConnectorServiceV1.ThreeDFileBinaryReader
extends ConnectorServiceV1.ConnectorBase
Reads 3D file binaries from the Cognite API.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenableForceTempStorage(boolean enable) Forces the use of temp storage for all binaries--not just the >200MiB ones.readThreeDFileBinaries(Request request) Executes an item-based request to get file binaries and blocks the thread until all files have been downloaded.readThreeDFileBinariesAsync(Request request) Executes an item-based request to get file binaries asynchronously.withTempStoragePath(URI path) Sets the temporary storage path for storing large file binaries.
-
Constructor Details
-
ThreeDFileBinaryReader
public ThreeDFileBinaryReader()
-
-
Method Details
-
enableForceTempStorage
Forces the use of temp storage for all binaries--not just the >200MiB ones.- Parameters:
enable-- Returns:
-
withTempStoragePath
Sets the temporary storage path for storing large file binaries. If the binary is >200 MiB it will be stored in temp storage instead of in memory. The following storage providers are supported: - Google Cloud Storage. Specify the temp path asgs://<my-storage-bucket>/<my-path>/. - Local (network) storage:file://localhost/home/files/, file:///home/files/, file:///c:/temp/- Parameters:
path- The URI to the temp storage- Returns:
- a with temp storage configured.
-
readThreeDFileBinaries
Executes an item-based request to get file binaries and blocks the thread until all files have been downloaded. We recommend reading a limited set of files per request, between 1 and 10--depending on the file size. If the request fails due to missing items, it will return a singleResultsItems.- Parameters:
request-- Returns:
- Throws:
Exception
-
readThreeDFileBinariesAsync
public CompletableFuture<ThreeDFileBinary> readThreeDFileBinariesAsync(Request request) throws Exception Executes an item-based request to get file binaries asynchronously. We recommend reading a limited set of files per request, between 1 and 10--depending on the file size. If the request fails due to missing items, it will return a singleResultsItems.- Parameters:
request-- Returns:
- Throws:
Exception
-