public class GeoTimeSerie
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
GeoTimeSerie.TYPE |
| Modifier and Type | Field and Description |
|---|---|
static long |
NO_ELEVATION
Value used for elevation when there is no elevation.
|
static long |
NO_LOCATION
Value used for location when there is no location.
|
| Constructor and Description |
|---|
GeoTimeSerie() |
GeoTimeSerie(int sizehint)
Create a new GeoTimeSerie instance with the initial hint
about its size
|
GeoTimeSerie(long lastbucket,
int bucketcount,
long bucketspan,
int sizehint)
Create a new bucketized GeoTimeSerie instance
|
| Modifier and Type | Method and Description |
|---|---|
GeoTimeSerie |
clone() |
GeoTimeSerie |
cloneEmpty() |
GeoTimeSerie |
cloneEmpty(int sizehint)
Clone everything except the type/values/locations/elevations.
|
void |
dump(java.io.PrintWriter pw) |
long |
getClassId() |
java.lang.String |
getLabel(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String> |
getLabels() |
long |
getLabelsId() |
Metadata |
getMetadata() |
java.lang.String |
getName() |
GeoTimeSerie.TYPE |
getType()
Return the type of this GTS instance.
|
boolean |
hasElevations() |
boolean |
hasLabel(java.lang.String name) |
boolean |
hasLocations() |
boolean |
isRenamed() |
void |
reset(long[] ticks,
long[] locations,
long[] elevations,
java.util.BitSet values,
int size) |
void |
reset(long[] ticks,
long[] locations,
long[] elevations,
double[] values,
int size) |
void |
reset(long[] ticks,
long[] locations,
long[] elevations,
long[] values,
int size) |
void |
reset(long[] ticks,
long[] locations,
long[] elevations,
java.lang.String[] values,
int size) |
void |
safeSetMetadata(Metadata metadata) |
void |
setClassId(long classId) |
void |
setLabel(java.lang.String key,
java.lang.String value) |
void |
setLabels(java.util.Map<java.lang.String,java.lang.String> labels) |
void |
setLabelsId(long labelsId) |
void |
setMetadata(Metadata metadata) |
void |
setName(java.lang.String name) |
void |
setRenamed(boolean renamed) |
void |
setSizeHint(int sizehint) |
void |
setType(GeoTimeSerie.TYPE type)
Attempts to force the type of an empty GeoTimeSerie instance.
|
int |
size()
Return the number of measures in this Geo Time Series.
|
java.lang.String |
toString() |
public static final long NO_ELEVATION
public static final long NO_LOCATION
public GeoTimeSerie()
public GeoTimeSerie(int sizehint)
sizehint - public GeoTimeSerie(long lastbucket,
int bucketcount,
long bucketspan,
int sizehint)
lastbucket - End timestamp of most recent bucket.bucketcount - Number of buckets in the geo time seriebucketspan - Time span of each bucketsizehint - Size hintpublic java.lang.String toString()
toString in class java.lang.Objectpublic void dump(java.io.PrintWriter pw)
public int size()
public GeoTimeSerie clone()
clone in class java.lang.Objectpublic GeoTimeSerie cloneEmpty(int sizehint)
public GeoTimeSerie cloneEmpty()
public GeoTimeSerie.TYPE getType()
public long getClassId()
public void setClassId(long classId)
public long getLabelsId()
public void setLabelsId(long labelsId)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.util.Map<java.lang.String,java.lang.String> getLabels()
public boolean hasLabel(java.lang.String name)
public java.lang.String getLabel(java.lang.String name)
public void setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
public void setLabel(java.lang.String key,
java.lang.String value)
public void setMetadata(Metadata metadata)
public void safeSetMetadata(Metadata metadata)
public Metadata getMetadata()
public boolean hasLocations()
public boolean hasElevations()
public void setRenamed(boolean renamed)
public boolean isRenamed()
public void setSizeHint(int sizehint)
public void reset(long[] ticks,
long[] locations,
long[] elevations,
double[] values,
int size)
throws java.io.IOException
java.io.IOExceptionpublic void reset(long[] ticks,
long[] locations,
long[] elevations,
long[] values,
int size)
throws java.io.IOException
java.io.IOExceptionpublic void reset(long[] ticks,
long[] locations,
long[] elevations,
java.lang.String[] values,
int size)
throws java.io.IOException
java.io.IOExceptionpublic void reset(long[] ticks,
long[] locations,
long[] elevations,
java.util.BitSet values,
int size)
throws java.io.IOException
java.io.IOExceptionpublic void setType(GeoTimeSerie.TYPE type)
type -