Package net.solarnetwork.domain.datum
Interface DatumStreamMetadata
- All Known Subinterfaces:
ObjectDatumStreamMetadata
- All Known Implementing Classes:
BasicDatumStreamMetadata,BasicObjectDatumStreamMetadata
public interface DatumStreamMetadata
Metadata about a datum stream.
- Since:
- 2.0
- Version:
- 2.1
- Author:
- matt
-
Method Summary
Modifier and TypeMethodDescriptionString[]Get all property names included in the stream.Get the stream ID.Get the time zone ID associated with this stream.default intpropertyIndex(DatumSamplesType type, String name) Get the index of a specific property name.String[]Get the subset of all property names that are of a specific type.
-
Method Details
-
getStreamId
UUID getStreamId()Get the stream ID.- Returns:
- the stream ID
-
getTimeZoneId
String getTimeZoneId()Get the time zone ID associated with this stream.- Returns:
- the time zone ID, or null if not known
-
getPropertyNames
String[] getPropertyNames()Get all property names included in the stream.- Returns:
- the property names
-
propertyNamesForType
Get the subset of all property names that are of a specific type.- Parameters:
type- the type of property to get the names for- Returns:
- the property names, or null if none available or
typeisDatumSamplesType.Tag
-
propertyIndex
Get the index of a specific property name.- Parameters:
type- the type of property to get the index forname- the property name to search for- Returns:
- the index, or -1 if not available
- Since:
- 2.1
-