public class TemporalProperties extends LongIntervalFeatureData
Modifier and Type | Field and Description |
---|---|
protected T |
data |
protected T |
data2 |
protected FeatureType |
type |
Constructor and Description |
---|
TemporalProperties(long timestamp)
Creates TemporalProperties with a simple timestamp (no temporal range).
|
TemporalProperties(long start,
long end)
Creates a simple temporal range from a start and end time pair,
represented in miliseconds from the Unix epoch.
|
TemporalProperties(galileo.serialization.SerializationInputStream in) |
TemporalProperties(java.lang.String start,
java.lang.String end)
Creates a simple temporal range from a start and end time pair,
represented as Strings.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(galileo.dataset.feature.FeatureData<?> featureData) |
boolean |
equals(java.lang.Object obj) |
long |
getEnd()
Get the end point of the time interval represented by this
TemporalProperties instance.
|
java.util.Date |
getLowerBound()
Retrieves the lower bound of this temporal range (if applicable).
|
long |
getStart()
Get the starting point of the time interval represented by this
TemporalProperties instance.
|
FeatureType |
getType()
Return this FeatureData's type.
|
java.util.Date |
getUpperBound()
Retrieves the upper bound of this temporal range (if applicable).
|
int |
hashCode() |
boolean |
isTimestamp()
If the temporal range stored in these TemporalProperties is of length
zero (i.e., start == end) then it is considered a Timestamp.
|
byte[] |
toBytes()
Retrieves the binary byte array representation of this FeatureData.
|
double |
toDouble()
Provides the double precision floating-point representation of this
FeatureData.
|
Pair<java.lang.Double,java.lang.Double> |
toDoubleInterval()
Provides the double-precision floating point interval representation of
this FeatureData.
|
float |
toFloat()
Provides the float representation of this FeatureData.
|
Pair<java.lang.Float,java.lang.Float> |
toFloatInterval()
Provides the floating point interval representation of this FeatureData.
|
int |
toInt()
Provides the integer representation of this FeatureData.
|
Pair<java.lang.Integer,java.lang.Integer> |
toIntInterval()
Provides the integer-based interval representation of this FeatureData.
|
long |
toLong()
Provides the long integer representation of this FeatureData.
|
Pair<java.lang.Long,java.lang.Long> |
toLongInterval()
Provides the long integer-based interval representation of this
FeatureData.
|
java.lang.String |
toString()
Provides the String-based representation of this FeatureData.
|
serialize
protected T extends java.lang.Number & java.lang.Comparable<T> data2
protected T extends java.lang.Comparable<T> data
protected FeatureType type
public TemporalProperties(long timestamp)
timestamp
- Timestamp for these TemporalPropertiespublic TemporalProperties(long start, long end) throws java.lang.IllegalArgumentException
start
- Start of the temporal rangeend
- End of the temporal rangejava.lang.IllegalArgumentException
public TemporalProperties(java.lang.String start, java.lang.String end) throws java.text.ParseException, java.lang.IllegalArgumentException
start
- Start of the temporal rangeend
- End of the temporal rangejava.text.ParseException
java.lang.IllegalArgumentException
@ByteSerializable.Deserialize public TemporalProperties(galileo.serialization.SerializationInputStream in) throws java.io.IOException
java.io.IOException
public java.util.Date getLowerBound()
public java.util.Date getUpperBound()
public long getStart()
public long getEnd()
public boolean isTimestamp()
public java.lang.String toString()
public Pair<java.lang.Integer,java.lang.Integer> toIntInterval()
public Pair<java.lang.Long,java.lang.Long> toLongInterval()
public Pair<java.lang.Float,java.lang.Float> toFloatInterval()
public Pair<java.lang.Double,java.lang.Double> toDoubleInterval()
public byte[] toBytes()
public int toInt()
public long toLong()
public float toFloat()
public double toDouble()
public FeatureType getType()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(galileo.dataset.feature.FeatureData<?> featureData)
compareTo
in interface java.lang.Comparable<galileo.dataset.feature.FeatureData<?>>