类 DateTimeIndex
- java.lang.Object
-
- org.meteoinfo.dataframe.Index<LocalDateTime>
-
- org.meteoinfo.dataframe.DateTimeIndex
-
- 所有已实现的接口:
Iterable<LocalDateTime>
public class DateTimeIndex extends Index<LocalDateTime>
- 作者:
- Yaqiang Wang
-
-
构造器概要
构造器 构造器 说明 DateTimeIndex()ConstructorDateTimeIndex(int tNum, String end, String freq)ConstructorDateTimeIndex(String start, int tNum, String freq)ConstructorDateTimeIndex(String start, String end, String freq)ConstructorDateTimeIndex(List data)ConstructorDateTimeIndex(List data, String name)ConstructorDateTimeIndex(Array data)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Objectclone()IndexgetDay()Get day indexIndexgetHour()Get hour indexObject[]getIndices(Object label)Get indicesObject[]getIndices(List<Object> labels)Get indicesIndexgetMinute()Get minute indexIndexgetMonth()Get month indexStringgetNameFormat()Get Name formatTemporalAmountgetPeriod()TemporalAmountgetResamplePeriod()Get resample periodIndexgetSecond()Get second indexIndexgetYear()Get year indexintindexOf(String d)Index ofintindexOf(LocalDateTime d)Index ofintindexOf(Date d)Index ofList<Integer>indexOf(List ds)Index ofvoidsetFormat(String value)Set string formatvoidsetPeriod(TemporalAmount value)Set periodvoidsetResamplPeriod(TemporalAmount value)Set resample periodDateTimeIndexsubIndex()Sub indexDateTimeIndexsubIndex(int start, int end, int step)Sub indexDateTimeIndexsubIndex(List<Integer> idx)Sub indexStringtoString()StringtoString(int idx)Convert i_th index to stringStringtoString(int idx, String format)Convert i_th index to stringvoidupdateFormat()Update format-
从类继承的方法 org.meteoinfo.dataframe.Index
add, add, append, contains, factory, factory, factory, factory, factory, fillKeyList, filterIndices, get, getData, getFormat, getIndices_bak, getIndices_s, getName, getValues, indexAll, indexOf, indices, indices, iterator, set, setData, setName, size, subList, toString_Index
-
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
-
-
-
构造器详细资料
-
DateTimeIndex
public DateTimeIndex()
Constructor
-
DateTimeIndex
public DateTimeIndex(Array data)
Constructor- 参数:
data- Data
-
DateTimeIndex
public DateTimeIndex(List data)
Constructor- 参数:
data- Data list
-
DateTimeIndex
public DateTimeIndex(List data, String name)
Constructor- 参数:
data- Data listname- Name
-
DateTimeIndex
public DateTimeIndex(String start, String end, String freq)
Constructor- 参数:
start- Start timeend- End timefreq- Frequent
-
DateTimeIndex
public DateTimeIndex(String start, int tNum, String freq)
Constructor- 参数:
start- Start timetNum- Date time numberfreq- Frequent
-
-
方法详细资料
-
getPeriod
public TemporalAmount getPeriod()
-
setPeriod
public void setPeriod(TemporalAmount value)
Set period- 参数:
value- Period
-
getResamplePeriod
public TemporalAmount getResamplePeriod()
Get resample period- 返回:
- Resample period
-
setResamplPeriod
public void setResamplPeriod(TemporalAmount value)
Set resample period- 参数:
value- Resample period
-
setFormat
public void setFormat(String value)
Set string format- 覆盖:
setFormat在类中Index<LocalDateTime>- 参数:
value- String format
-
getNameFormat
public String getNameFormat()
Get Name format- 覆盖:
getNameFormat在类中Index<LocalDateTime>- 返回:
-
indexOf
public int indexOf(LocalDateTime d)
Index of- 参数:
d- DateTime- 返回:
- Index
-
indexOf
public int indexOf(Date d)
Index of- 参数:
d- Date- 返回:
- Index
-
indexOf
public int indexOf(String d)
Index of- 参数:
d- Date string- 返回:
- Index
-
indexOf
public List<Integer> indexOf(List ds)
Index of- 覆盖:
indexOf在类中Index<LocalDateTime>- 参数:
ds- Date list- 返回:
- Index list
-
getIndices
public Object[] getIndices(List<Object> labels)
Get indices- 覆盖:
getIndices在类中Index<LocalDateTime>- 参数:
labels- Labels- 返回:
- Indices
-
getIndices
public Object[] getIndices(Object label)
Get indices- 覆盖:
getIndices在类中Index<LocalDateTime>- 参数:
label- Label- 返回:
- Indices
-
subIndex
public DateTimeIndex subIndex()
Sub index- 覆盖:
subIndex在类中Index<LocalDateTime>- 返回:
- Index
-
subIndex
public DateTimeIndex subIndex(List<Integer> idx)
Sub index- 覆盖:
subIndex在类中Index<LocalDateTime>- 参数:
idx- Index list- 返回:
- Index
-
subIndex
public DateTimeIndex subIndex(int start, int end, int step)
Sub index- 覆盖:
subIndex在类中Index<LocalDateTime>- 参数:
start- Start indexend- End indexstep- Step- 返回:
- Index
-
getYear
public Index getYear()
Get year index- 返回:
- Year index
-
getMonth
public Index getMonth()
Get month index- 返回:
- Month index
-
getDay
public Index getDay()
Get day index- 返回:
- Day index
-
getHour
public Index getHour()
Get hour index- 返回:
- HOur index
-
getMinute
public Index getMinute()
Get minute index- 返回:
- Minute index
-
getSecond
public Index getSecond()
Get second index- 返回:
- Second index
-
updateFormat
public void updateFormat()
Update format- 覆盖:
updateFormat在类中Index<LocalDateTime>
-
toString
public String toString()
- 覆盖:
toString在类中Index<LocalDateTime>
-
toString
public String toString(int idx)
Convert i_th index to string- 覆盖:
toString在类中Index<LocalDateTime>- 参数:
idx- Index i- 返回:
- String
-
toString
public String toString(int idx, String format)
Convert i_th index to string- 覆盖:
toString在类中Index<LocalDateTime>- 参数:
idx- Index iformat- Format string- 返回:
- String
-
clone
public Object clone()
- 覆盖:
clone在类中Index<LocalDateTime>
-
-