object StacUtils
- Alphabetic
- By Inheritance
- StacUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addExtensionFieldsToSchema(schema: StructType, extensions: Array[StacExtension]): StructType
Adds STAC extension fields to the properties field in the schema
Adds STAC extension fields to the properties field in the schema
- schema
The base STAC schema to enhance
- extensions
Array of STAC extension definitions
- returns
Enhanced schema with extension fields added to the properties struct
-
def
addFiltersToUrl(baseUrl: String, spatialFilter: Option[GeoParquetSpatialFilter], temporalFilter: Option[TemporalFilter]): String
Adds the spatial and temporal filters to the base URL.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getFilterBBox(filter: GeoParquetSpatialFilter): String
Returns the temporal filter string based on the temporal filter.
-
def
getFilterTemporal(filter: TemporalFilter): String
Returns the temporal filter string based on the temporal filter.
- def getFullCollectionUrl(opts: Map[String, String]): String
-
def
getNumPartitions(itemCount: Int, numPartitions: Int, maxPartitionItemFiles: Int, defaultParallelism: Int): Int
Returns the number of partitions to use for reading the data.
Returns the number of partitions to use for reading the data.
The number of partitions is determined based on the number of items, the number of partitions requested, the maximum number of item files per partition, and the default parallelism.
- itemCount
The number of items in the collection.
- numPartitions
The number of partitions requested.
- maxPartitionItemFiles
The maximum number of item files per partition.
- defaultParallelism
The default parallelism.
- returns
The number of partitions to use for reading the data.
- def getStacCollectionBasePath(collectionUrl: String): String
- def getStacCollectionBasePath(opts: Map[String, String]): String
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
inferStacSchema(opts: Map[String, String]): StructType
Infer the schema of the STAC data source table.
Infer the schema of the STAC data source table.
This method checks if a cached schema exists for the given data source options. If not, it processes the STAC collection and saves it as a GeoJson file. The schema is then inferred from this GeoJson file.
- opts
Mapping of data source options, which should include either 'url' or 'service'.
- returns
The inferred schema of the STAC data source table.
- Exceptions thrown
IllegalArgumentExceptionIf neither 'url' nor 'service' are provided.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def loadStacCollectionToJson(url: String, maxRetries: Int = 3): String
- def loadStacCollectionToJson(opts: Map[String, String]): String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
promotePropertiesToTop(row: InternalRow, schema: StructType): InternalRow
Promote the properties field to the top level of the row.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def updatePropertiesPromotedSchema(schema: StructType): StructType
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()