Class DeviceEntry
- java.lang.Object
-
- org.apache.iotdb.db.metadata.idtable.entry.DeviceEntry
-
public class DeviceEntry extends java.lang.Objectdevice entry in id table
-
-
Constructor Summary
Constructors Constructor Description DeviceEntry(IDeviceID deviceID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearFlushTime()voidclearLastTime()booleancontains(java.lang.String measurementName)whether the device entry contains the measurementbooleanequals(java.lang.Object o)IDeviceIDgetDeviceID()java.lang.LonggetFlushTime(long timePartition)java.lang.LonggetFLushTimeWithDefaultValue(long timePartition)longgetGlobalFlushTime()java.lang.LonggetLastTime(long timePartition)java.lang.LonggetLastTimeWithDefaultValue(long timePartition)java.util.Map<java.lang.String,SchemaEntry>getMeasurementMap()SchemaEntrygetSchemaEntry(java.lang.String measurementName)get schema entry of the measurementinthashCode()booleanisAligned()voidputFlushTimeMap(long timePartition, long flushTime)voidputLastTimeMap(long timePartition, long lastTime)voidputSchemaEntry(java.lang.String measurementName, SchemaEntry schemaEntry)put new schema entry of the measurementvoidsetAligned(boolean aligned)voidsetGlobalFlushTime(long globalFlushTime)longupdateFlushTimeMap(long timePartition, long flushTime)voidupdateGlobalFlushTime(long flushTime)longupdateLastTimeMap(long timePartition, long lastTime)
-
-
-
Constructor Detail
-
DeviceEntry
public DeviceEntry(IDeviceID deviceID)
-
-
Method Detail
-
getSchemaEntry
public SchemaEntry getSchemaEntry(java.lang.String measurementName)
get schema entry of the measurement- Parameters:
measurementName- name of the measurement- Returns:
- if exist, schema entry of the measurement. if not exist, null
-
putSchemaEntry
public void putSchemaEntry(java.lang.String measurementName, SchemaEntry schemaEntry)put new schema entry of the measurement- Parameters:
measurementName- name of the measurementschemaEntry- schema entry of the measurement
-
contains
public boolean contains(java.lang.String measurementName)
whether the device entry contains the measurement- Parameters:
measurementName- name of the measurement- Returns:
- whether the device entry contains the measurement
-
isAligned
public boolean isAligned()
-
setAligned
public void setAligned(boolean aligned)
-
getDeviceID
public IDeviceID getDeviceID()
-
putLastTimeMap
public void putLastTimeMap(long timePartition, long lastTime)
-
putFlushTimeMap
public void putFlushTimeMap(long timePartition, long flushTime)
-
updateLastTimeMap
public long updateLastTimeMap(long timePartition, long lastTime)
-
updateFlushTimeMap
public long updateFlushTimeMap(long timePartition, long flushTime)
-
updateGlobalFlushTime
public void updateGlobalFlushTime(long flushTime)
-
setGlobalFlushTime
public void setGlobalFlushTime(long globalFlushTime)
-
getLastTime
public java.lang.Long getLastTime(long timePartition)
-
getFlushTime
public java.lang.Long getFlushTime(long timePartition)
-
getLastTimeWithDefaultValue
public java.lang.Long getLastTimeWithDefaultValue(long timePartition)
-
getFLushTimeWithDefaultValue
public java.lang.Long getFLushTimeWithDefaultValue(long timePartition)
-
getGlobalFlushTime
public long getGlobalFlushTime()
-
clearLastTime
public void clearLastTime()
-
clearFlushTime
public void clearFlushTime()
-
getMeasurementMap
public java.util.Map<java.lang.String,SchemaEntry> getMeasurementMap()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-