public class Index
extends java.lang.Object
构造器和说明 |
---|
Index() |
Index(Index other)
Create index from another index
|
Index(int ttl,
IndexKeys keys,
IndexLine line)
create Index
|
限定符和类型 | 方法和说明 |
---|---|
void |
FromJsonObject(net.sf.json.JSONObject dict) |
void |
FromJsonString(java.lang.String indexString) |
IndexKeys |
GetKeys() |
IndexLine |
GetLine() |
int |
GetTtl() |
boolean |
isKeysSet() |
boolean |
isLineSet() |
void |
SetKeys(IndexKeys keys) |
void |
SetLine(IndexLine line) |
void |
SetTtl(int ttl) |
net.sf.json.JSONObject |
ToJsonObject() |
java.lang.String |
ToJsonString() |
net.sf.json.JSONObject |
ToRequestJson()
Return index in json object
|
java.lang.String |
ToRequestString() |
public Index()
public Index(int ttl, IndexKeys keys, IndexLine line)
ttl
- the index data file cycle in day, currently only support 7, 30, 90keys
- the keys index configline
- the log line index configpublic Index(Index other)
other
- another index configpublic boolean isKeysSet()
public boolean isLineSet()
public int GetTtl()
public void SetTtl(int ttl)
ttl
- the ttl to setpublic IndexKeys GetKeys()
public IndexLine GetLine()
public void SetKeys(IndexKeys keys)
keys
- the keys to setpublic void SetLine(IndexLine line)
line
- the line to setpublic net.sf.json.JSONObject ToRequestJson() throws LogException
LogException
- if any error happenedpublic java.lang.String ToRequestString() throws LogException
LogException
public net.sf.json.JSONObject ToJsonObject() throws LogException
LogException
public java.lang.String ToJsonString() throws LogException
LogException
public void FromJsonObject(net.sf.json.JSONObject dict) throws LogException
LogException
public void FromJsonString(java.lang.String indexString) throws LogException
LogException