public class Index extends Object
| 构造器 | 说明 |
|---|---|
Index() |
|
Index(int ttl,
IndexKeys keys,
IndexLine line) |
create Index
|
Index(Index other) |
Create index from another index
|
| 修饰符和类型 | 方法 | 说明 |
|---|---|---|
void |
FromJsonObject(com.alibaba.fastjson.JSONObject dict) |
|
void |
FromJsonString(String indexString) |
|
IndexKeys |
GetKeys() |
|
IndexLine |
GetLine() |
|
int |
GetTtl() |
|
boolean |
isKeysSet() |
|
boolean |
isLineSet() |
|
void |
SetKeys(IndexKeys keys) |
|
void |
SetLine(IndexLine line) |
|
void |
SetTtl(int ttl) |
|
com.alibaba.fastjson.JSONObject |
ToJsonObject() |
|
String |
ToJsonString() |
|
com.alibaba.fastjson.JSONObject |
ToRequestJson() |
Return index in json object
|
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 com.alibaba.fastjson.JSONObject ToRequestJson()
throws LogException
LogException - if any error happenedpublic String ToRequestString() throws LogException
LogExceptionpublic com.alibaba.fastjson.JSONObject ToJsonObject()
throws LogException
LogExceptionpublic String ToJsonString() throws LogException
LogExceptionpublic void FromJsonObject(com.alibaba.fastjson.JSONObject dict)
throws LogException
LogExceptionpublic void FromJsonString(String indexString) throws LogException
LogExceptionCopyright © 2018. All Rights Reserved.