Package org.n52.shetland.ogc.om
Class StreamingValue<S>
java.lang.Object
org.n52.shetland.ogc.om.AbstractObservationValue<Value<ObservationStream>>
org.n52.shetland.ogc.sos.response.AbstractStreaming
org.n52.shetland.ogc.om.StreamingValue<S>
- Type Parameters:
S- Entity type
- All Implemented Interfaces:
AutoCloseable,ThrowingIterator<OmObservation,,OwsExceptionReport> ObservationStream,ObservationValue<Value<ObservationStream>>
Abstract streaming value class
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckForModifications(OmObservation observation) Check and modify observation for Spatial Filtering Profile and requested crsprotected GeometryTransformerGet phenomenon or sampling time of the observationgetUnit()getValue()Get observation valuebooleanbooleanbooleanbooleanabstract SGet the next entityabstract TimeValuePairGet nextTimeValuePairfrom entityprotected abstract voidQuery timesprotected abstract voidquery unitvoidsetGeometryTransformer(GeometryTransformer geometryTransformer) voidsetObservationTemplate(OmObservation observationTemplate) Set the observation template which contains all metadatavoidsetPhenomenonTime(Time phenomenonTime) Set phenomenon or sampling time of the observationprotected voidsetResultTime(TimeInstant resultTime) voidprotected voidsetValidTime(Time validTime) voidsetValue(Value<ObservationStream> value) Set observation valueMethods inherited from class org.n52.shetland.ogc.sos.response.AbstractStreaming
add, checkMaxNumberOfReturnedValues, contains, getAdditionalRequestParams, getMaxNumberOfValues, getObservationMergeIndicator, getResponseFormat, hasNext, isSetAdditionalRequestParams, isSetValue, next, setMaxNumberOfValues, setObservationMergeIndicator, setResponseFormatMethods inherited from class org.n52.shetland.ogc.om.AbstractObservationValue
getDecimalSeparator, getDefaultPointMetadata, getMetadata, getObservableProperty, getObservationID, getObservationType, getTokenSeparator, getTupleSeparator, isSetDecimalSeparator, isSetDefaultPointMetadata, isSetMetadata, isSetObservablePropertyD, isSetObservationID, isSetObservationType, isSetTokenSeparator, isSetTupleSeparator, setDecimalSeparator, setDefaultPointMetadata, setMetadata, setObservationID, setValuesForResultEncodingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.shetland.ogc.om.ObservationStream
close, collect, filter, findAny, findFirst, flatMap, map, merge, merge, modify, toStreamMethods inherited from interface org.n52.janmayen.ThrowingIterator
forEachRemaining, remove
-
Constructor Details
-
StreamingValue
public StreamingValue()
-
-
Method Details
-
nextEntity
Get the next entity- Returns:
- next entity object
- Throws:
OwsExceptionReport- If an error occurs
-
queryTimes
protected abstract void queryTimes()Query times -
queryUnit
protected abstract void queryUnit()query unit -
nextValue
Get nextTimeValuePairfrom entity- Returns:
- Next
TimeValuePair - Throws:
OwsExceptionReport- If an error occurs
-
getGeometryTransformer
-
setGeometryTransformer
- Parameters:
geometryTransformer- the geometryTransformer to set
-
setObservationTemplate
Set the observation template which contains all metadata- Parameters:
observationTemplate- Observation template to set
-
getObservationTemplate
- Returns:
- the observationTemplate
-
getPhenomenonTime
Description copied from interface:ObservationValueGet phenomenon or sampling time of the observation- Returns:
- Phenomenon or sampling time of the observation
-
setPhenomenonTime
Description copied from interface:ObservationValueSet phenomenon or sampling time of the observation- Parameters:
phenomenonTime- Phenomenon or sampling time of the observation
-
isSetPhenomenonTime
public boolean isSetPhenomenonTime() -
getValue
Description copied from interface:ObservationValueGet observation value- Returns:
- Observation value
-
setValue
Description copied from interface:ObservationValueSet observation value- Parameters:
value- Observation value
-
getUnit
- Overrides:
getUnitin classAbstractObservationValue<Value<ObservationStream>>- Returns:
- the unit
-
setUnit
- Overrides:
setUnitin classAbstractObservationValue<Value<ObservationStream>>- Parameters:
unit- the unit to set
-
isSetUnit
public boolean isSetUnit()- Overrides:
isSetUnitin classAbstractObservationValue<Value<ObservationStream>>
-
getResultTime
-
setResultTime
-
isSetResultTime
public boolean isSetResultTime() -
getValidTime
-
setValidTime
-
isSetValidTime
public boolean isSetValidTime() -
checkForModifications
Description copied from class:AbstractStreamingCheck and modify observation for Spatial Filtering Profile and requested crs- Specified by:
checkForModificationsin classAbstractStreaming- Parameters:
observation-OmObservationto check- Throws:
OwsExceptionReport- If an error occurs when modifying theOmObservation
-