public class ValueSet extends java.lang.Object implements TopologyInformation
| Modifier and Type | Class and Description |
|---|---|
static class |
ValueSet.Builder
The Builder class provides a way to construct a ValueSet given fixed initial information and variable
data that is added as it is generated.
|
static class |
ValueSet.Column
This class represents a column of data from a value set.
|
static class |
ValueSet.Definition
The Definition class represents a set of properties, each of which is defined
by an interface identifier and item identifier which specify an OpenDOF property.
|
static class |
ValueSet.Row
This class represents a row of data from a value set.
|
| Modifier and Type | Field and Description |
|---|---|
static org.opendof.core.oal.DOFInterfaceID |
DEFAULT_SINK_VERSION
The default sink version that this implementation uses.
|
static org.opendof.core.oal.DOFInterfaceID |
DEFAULT_SNAPSHOT_VERSION
The default snapshot version that this implementation uses.
|
static org.opendof.core.oal.DOFInterfaceID |
DEFAULT_SOURCE_VERSION
The default source version that this implementation uses.
|
static org.opendof.datatransfer.ValueSet.SKIP |
NO_VALUE
A DOFValue which indicates that no known value exists.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
ValueSet |
filter(ValueSet.Definition definition)
Returns a filtered ValueSet that contains all properties that exist in
both the current ValueSet and in the specified definition.
|
java.util.List<ValueSet.Column> |
getColumns()
Return a list of Columns contained in the ValueSet.
|
ValueSet.Definition |
getDefinition()
Return the ValueSet definition associated with the ValueSet.
|
org.opendof.core.oal.DOFObjectID |
getDeviceID()
Return the device identifier associated with the value set.
|
java.util.Date |
getFirstTime()
Return the first timestamp associated with the value set.
|
java.util.Date |
getLastTime()
Return the last timestamp associated with the value set.
|
org.opendof.core.oal.DOFObjectID |
getParentID()
Return the ID of the parent of the device originating the values.
|
java.lang.Integer |
getPosition()
Return the position of the device within the parent.
|
int |
getRowCount()
Return the number of rows in the ValueSet.
|
java.util.List<ValueSet.Row> |
getRows()
Return a list of Rows contained in the ValueSet.
|
byte[] |
getStorageBytes()
Get a compressed byte array which may be stored and later retrieved to recreate the ValueSet
using
ValueSet.Builder.loadStorageBytes(byte[]). |
byte[] |
getStorageBytesWithoutDefinition()
Get a compressed byte array without the definition which may be stored and later retrieved to recreate the ValueSet
using
ValueSet.Builder.loadStorageBytesWithoutDefinition(byte[]). |
int |
getTimeQuantum()
Return the quantum of the timestamps associated with the value set.
|
java.util.Date |
getTimestamp()
Returns the first timestamp associated with the value set.
|
byte[] |
getTransferBytes(org.opendof.core.oal.DOFInterfaceID version)
Return a byte array that contains all of the information in the ValueSet except for the ValueSet
definition and metadata.
|
int |
hashCode() |
java.lang.String |
toString() |
public static final org.opendof.core.oal.DOFInterfaceID DEFAULT_SINK_VERSION
public static final org.opendof.core.oal.DOFInterfaceID DEFAULT_SOURCE_VERSION
public static final org.opendof.core.oal.DOFInterfaceID DEFAULT_SNAPSHOT_VERSION
public static final org.opendof.datatransfer.ValueSet.SKIP NO_VALUE
public ValueSet filter(ValueSet.Definition definition)
definition - The definition containing the desired properties.null if this ValueSet does not contain any of the requested properties.public ValueSet.Definition getDefinition()
public int getRowCount()
public org.opendof.core.oal.DOFObjectID getDeviceID()
getDeviceID in interface TopologyInformationpublic java.util.Date getTimestamp()
getTimestamp in interface TopologyInformationgetFirstTime()public java.util.Date getFirstTime()
public java.util.Date getLastTime()
public int getTimeQuantum()
public org.opendof.core.oal.DOFObjectID getParentID()
getParentID in interface TopologyInformationpublic java.lang.Integer getPosition()
getPosition in interface TopologyInformationpublic java.util.List<ValueSet.Row> getRows()
public java.util.List<ValueSet.Column> getColumns()
public byte[] getStorageBytes()
ValueSet.Builder.loadStorageBytes(byte[]).public byte[] getStorageBytesWithoutDefinition()
ValueSet.Builder.loadStorageBytesWithoutDefinition(byte[]).public byte[] getTransferBytes(org.opendof.core.oal.DOFInterfaceID version)
version - The version describing the marshal format of the bytes.DEFAULT_SOURCE_VERSIONpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object