类 ColumnIndex
- java.lang.Object
-
- org.meteoinfo.dataframe.Index<Column>
-
- org.meteoinfo.dataframe.ColumnIndex
-
-
构造器概要
构造器 构造器 说明 ColumnIndex()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 IndexasIndex()Convert to string indexjava.lang.Objectclone()java.util.List<org.meteoinfo.ndarray.DataType>getDataTypes()Get Column data typesjava.util.List<java.lang.String>getFormats()Get column data formatsjava.util.List<java.lang.String>getNames()Get column namesintindexOfName(java.lang.String colName)Index of column namejava.util.List<java.lang.Integer>indexOfName(java.util.List<java.lang.String> colNames)Index of column namesjava.lang.Integer[]indices(java.lang.Object[] names)Get indicesjava.lang.Integer[]indices(java.util.List<java.lang.Object> names)Get indicesbooleanisSameDataType()Check if the data types of all columns are same-
从类继承的方法 org.meteoinfo.dataframe.Index
add, add, append, contains, factory, factory, factory, factory, factory, fillKeyList, filterIndices, get, getData, getFormat, getIndices, getIndices, getIndices_bak, getIndices_s, getName, getNameFormat, getValues, indexAll, indexOf, indexOf, iterator, set, setData, setFormat, setName, size, subIndex, subIndex, subIndex, subList, toString, toString, toString, toString_Index, updateFormat
-
-
-
-
方法详细资料
-
getNames
public java.util.List<java.lang.String> getNames()
Get column names- 返回:
- Column names
-
getDataTypes
public java.util.List<org.meteoinfo.ndarray.DataType> getDataTypes()
Get Column data types- 返回:
- Column data types
-
getFormats
public java.util.List<java.lang.String> getFormats()
Get column data formats- 返回:
- Column data formats
-
indexOfName
public int indexOfName(java.lang.String colName)
Index of column name- 参数:
colName- Column name- 返回:
- Index value
-
indexOfName
public java.util.List<java.lang.Integer> indexOfName(java.util.List<java.lang.String> colNames)
Index of column names- 参数:
colNames- Column names- 返回:
- Index list
-
indices
public java.lang.Integer[] indices(java.lang.Object[] names)
Get indices
-
indices
public java.lang.Integer[] indices(java.util.List<java.lang.Object> names)
Get indices
-
isSameDataType
public boolean isSameDataType()
Check if the data types of all columns are same- 返回:
- Boolean
-
asIndex
public Index asIndex()
Convert to string index- 返回:
- String index
-
-