Class AbstractStreaming
java.lang.Object
org.n52.shetland.ogc.om.AbstractObservationValue<Value<ObservationStream>>
org.n52.shetland.ogc.sos.response.AbstractStreaming
- All Implemented Interfaces:
AutoCloseable,ThrowingIterator<OmObservation,,OwsExceptionReport> ObservationStream,ObservationValue<Value<ObservationStream>>
- Direct Known Subclasses:
StreamingValue
public abstract class AbstractStreaming
extends AbstractObservationValue<Value<ObservationStream>>
implements ObservationStream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(OWSConstants.AdditionalRequestParams parameter, Object object) protected abstract voidcheckForModifications(OmObservation observation) Check and modify observation for Spatial Filtering Profile and requested crsprotected voidcheckMaxNumberOfReturnedValues(int size) Check if the max number of returned values is exceededbooleancontains(OWSConstants.AdditionalRequestParams parameter) protected Objectintabstract booleanhasNext()booleanbooleanabstract OmObservationnext()voidsetMaxNumberOfValues(int maxNumberOfValues) voidsetObservationMergeIndicator(ObservationMergeIndicator mergeIndicator) voidsetResponseFormat(String responseFormat) Methods inherited from class org.n52.shetland.ogc.om.AbstractObservationValue
getDecimalSeparator, getDefaultPointMetadata, getMetadata, getObservableProperty, getObservationID, getObservationType, getTokenSeparator, getTupleSeparator, getUnit, isSetDecimalSeparator, isSetDefaultPointMetadata, isSetMetadata, isSetObservablePropertyD, isSetObservationID, isSetObservationType, isSetTokenSeparator, isSetTupleSeparator, isSetUnit, setDecimalSeparator, setDefaultPointMetadata, setMetadata, setObservationID, setUnit, 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.shetland.ogc.om.ObservationValue
getPhenomenonTime, getValue, setPhenomenonTime, setValueMethods inherited from interface org.n52.janmayen.ThrowingIterator
forEachRemaining, remove
-
Constructor Details
-
AbstractStreaming
public AbstractStreaming()
-
-
Method Details
-
next
- Specified by:
nextin interfaceThrowingIterator<OmObservation,OwsExceptionReport> - Throws:
NoSuchElementExceptionOwsExceptionReport
-
hasNext
- Specified by:
hasNextin interfaceThrowingIterator<OmObservation,OwsExceptionReport> - Throws:
OwsExceptionReport
-
checkForModifications
Check and modify observation for Spatial Filtering Profile and requested crs- Parameters:
observation-OmObservationto check- Throws:
OwsExceptionReport- If an error occurs when modifying theOmObservation
-
add
-
contains
-
isSetAdditionalRequestParams
public boolean isSetAdditionalRequestParams() -
getAdditionalRequestParams
-
isSetValue
public boolean isSetValue()- Specified by:
isSetValuein interfaceObservationValue<Value<ObservationStream>>
-
setResponseFormat
-
getResponseFormat
-
getMaxNumberOfValues
public int getMaxNumberOfValues()- Returns:
- the maxNumberOfValues
-
setMaxNumberOfValues
public void setMaxNumberOfValues(int maxNumberOfValues) - Parameters:
maxNumberOfValues- the maxNumberOfValues to set
-
checkMaxNumberOfReturnedValues
Check if the max number of returned values is exceeded- Parameters:
size- Max number count- Throws:
CodedException- If the size limit is exceededOwsExceptionReport
-
setObservationMergeIndicator
-
getObservationMergeIndicator
-