Class FlinkReadEngineImpl
java.lang.Object
com.here.platform.data.client.flink.javadsl.FlinkReadEngineImpl
- All Implemented Interfaces:
FlinkReadEngine
-
Constructor Summary
ConstructorsConstructorDescriptionFlinkReadEngineImpl(HRN hrn, Settings settings, scala.Function0<com.here.platform.data.client.engine.scaladsl.ReadEngine> toCreateReadEngine) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.api.common.functions.MapFunction<Partition,byte[]> Retrieves an flink map function that download data for each partition.byte[]getDataAsBytes(Partition partition) Retrieves the blob data associated with the partition as array of bytesbyte[]getObjectDataAsBytes2(String layerId, String key, boolean applyDecompression, ByteRange range) Retrieves the blob data associated with provided key as an Array of bytes.getObjectMetadata(String layerId, String key) Retrieves metadata of the key provided in requestlistObjects(String layerId, String parent) Retrieves List of elements under the provided parent key at one level of depth.listObjects(String layerId, String parent, Integer pageSize) Retrieves List of elements under the provided parent key at one level of depth.
-
Constructor Details
-
FlinkReadEngineImpl
-
-
Method Details
-
asDataFlow
Description copied from interface:FlinkReadEngineRetrieves an flink map function that download data for each partition.- Specified by:
asDataFlowin interfaceFlinkReadEngine- Returns:
- the pekko flow
-
getDataAsBytes
Description copied from interface:FlinkReadEngineRetrieves the blob data associated with the partition as array of bytes- Specified by:
getDataAsBytesin interfaceFlinkReadEngine- Parameters:
partition- the partition to retrieve- Returns:
- blob data associated with the partition as array of bytes
-
getObjectDataAsBytes2
public byte[] getObjectDataAsBytes2(String layerId, String key, boolean applyDecompression, ByteRange range) Description copied from interface:FlinkReadEngineRetrieves the blob data associated with provided key as an Array of bytes.- Specified by:
getObjectDataAsBytes2in interfaceFlinkReadEngine- Parameters:
layerId- the id of the layerkey- the key of the object to get data forapplyDecompression- decides whether decompression is applied for the object data.range- the range of bytes to retrieve- Returns:
- Blob data associated with key as an Array of bytes.
-
getObjectMetadata
Description copied from interface:FlinkReadEngineRetrieves metadata of the key provided in request- Specified by:
getObjectMetadatain interfaceFlinkReadEngine- Parameters:
layerId- the id of the layerkey- the key for which metadata is requested- Returns:
- metadata associated with the specified key
-
listObjects
Description copied from interface:FlinkReadEngineRetrieves List of elements under the provided parent key at one level of depth.If no parent key is provided, root of the layer is used as default key.
- Specified by:
listObjectsin interfaceFlinkReadEngine- Parameters:
layerId- the id of the layerparent- the key under which listing items are requested. Empty String or Null value means root is requested.- Returns:
- List of elements under specified parent.
-
listObjects
Description copied from interface:FlinkReadEngineRetrieves List of elements under the provided parent key at one level of depth.If no parent key is provided, root of the layer is used as default key.
- Specified by:
listObjectsin interfaceFlinkReadEngine- Parameters:
layerId- the id of the layerparent- the key under which listing items are requested. Empty String or Null value means root is requested.pageSize- the number of objects that are fetched internally per request- Returns:
- List of elements under specified parent.
-