public class IndexSpec
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
columnName |
java.lang.String |
path |
SmartStore.Type |
type |
Constructor and Description |
---|
IndexSpec(java.lang.String path,
SmartStore.Type type) |
IndexSpec(java.lang.String path,
SmartStore.Type type,
java.lang.String columnName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static IndexSpec[] |
fromJSON(JSONArray jsonArray) |
static IndexSpec |
fromJSON(JSONObject json)
Return IndexSpec given JSONObject
|
java.lang.String |
getPathType() |
static boolean |
hasFTS(IndexSpec[] indexSpecs) |
int |
hashCode() |
static boolean |
hasJSON1(IndexSpec[] indexSpecs) |
static java.util.Map<java.lang.String,IndexSpec> |
mapForIndexSpecs(IndexSpec[] indexSpecs) |
JSONObject |
toJSON() |
static JSONArray |
toJSON(IndexSpec[] indexSpecs) |
public final java.lang.String path
public final SmartStore.Type type
public final java.lang.String columnName
public IndexSpec(java.lang.String path, SmartStore.Type type)
public IndexSpec(java.lang.String path, SmartStore.Type type, java.lang.String columnName)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getPathType()
public JSONObject toJSON() throws JSONException
JSONException
public static JSONArray toJSON(IndexSpec[] indexSpecs) throws JSONException
indexSpecs
- JSONException
public static IndexSpec[] fromJSON(JSONArray jsonArray) throws JSONException
jsonArray
- JSONException
public static IndexSpec fromJSON(JSONObject json) throws JSONException
json
- JSONException
public static java.util.Map<java.lang.String,IndexSpec> mapForIndexSpecs(IndexSpec[] indexSpecs)
indexSpecs
- public static boolean hasFTS(IndexSpec[] indexSpecs)
indexSpecs
- public static boolean hasJSON1(IndexSpec[] indexSpecs)
indexSpecs
-