Package org.apache.sis.storage.landsat
Class BandGroup
java.lang.Object
org.apache.sis.storage.AbstractResource
org.apache.sis.storage.landsat.BandGroup
- All Implemented Interfaces:
StoreResource
,Aggregate
,Resource
An aggregate of
Band
.
Each aggregate is for one BandGroupName
.- Since:
- 1.1
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Band[]
The array of images for each Landsat band.(package private) final BandGroupName
The group of bands that this aggregate represents.(package private) org.opengis.util.GenericName
Name of the band group.Fields inherited from class org.apache.sis.storage.AbstractResource
listeners
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
BandGroup
(StoreListeners parent, BandGroupName group, Band[] resources, int count) Creates a new aggregate for the specified group. -
Method Summary
Modifier and TypeMethodDescriptionReturns all bands in the given array of aggregates.Returns the resources for each Landsat band of this group.protected org.opengis.metadata.Metadata
Invoked in a synchronized block the first time thatAbstractResource.getMetadata()
is invoked.Optional<org.opengis.util.GenericName>
Returns the resource persistent identifier if available.Returns the data store that created this resource.(package private) static BandGroup[]
group
(StoreListeners parent, Band[] resources, int count) Creates aggregates for the given bands.Methods inherited from class org.apache.sis.storage.AbstractResource
addListener, clearCache, getEnvelope, getMetadata, getSynchronizationLock, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.sis.storage.Resource
addListener, getMetadata, removeListener
-
Field Details
-
group
The group of bands that this aggregate represents. -
identifier
org.opengis.util.GenericName identifierName of the band group. This is set byLandsatStore
and should not be modified after that point. -
components
The array of images for each Landsat band.
-
-
Constructor Details
-
BandGroup
Creates a new aggregate for the specified group. This constructor will copy only the resources for that group from the given array.
-
-
Method Details
-
group
Creates aggregates for the given bands. -
getOriginator
Returns the data store that created this resource.- Specified by:
getOriginator
in interfaceStoreResource
- Returns:
- the data store that created this resource.
-
getIdentifier
Returns the resource persistent identifier if available.- Specified by:
getIdentifier
in interfaceResource
- Overrides:
getIdentifier
in classAbstractResource
- Returns:
- a persistent identifier unique within the data store, or absent if this resource has no such identifier.
- See Also:
-
createMetadata
Invoked in a synchronized block the first time thatAbstractResource.getMetadata()
is invoked.- Overrides:
createMetadata
in classAbstractResource
- Returns:
- the newly created metadata, or
null
if unknown. - Throws:
DataStoreException
- if an error occurred while reading metadata from this resource.
-
components
Returns the resources for each Landsat band of this group.- Specified by:
components
in interfaceAggregate
- Returns:
- all children resources that are components of this aggregate. Never
null
.
-
bands
Returns all bands in the given array of aggregates.
-