public class Index extends Object
| Constructor and Description |
|---|
Index() |
Index(Index other)
Create index from another index
|
Index(int ttl,
IndexKeys keys,
IndexLine line)
create Index
|
| Modifier and Type | Method and Description |
|---|---|
void |
FromJsonObject(com.alibaba.fastjson.JSONObject dict) |
void |
FromJsonString(String indexString) |
IndexKeys |
GetKeys() |
IndexLine |
GetLine() |
List<String> |
getLogReduceBlackList() |
List<String> |
getLogReduceWhiteList() |
int |
getMaxTextLen() |
int |
GetTtl() |
boolean |
isKeysSet() |
boolean |
isLineSet() |
boolean |
isLogReduceEnable() |
void |
SetKeys(IndexKeys keys) |
void |
SetLine(IndexLine line) |
void |
setLogReduceBlackList(List<String> logReduceBlackList) |
void |
setLogReduceEnable(boolean logReduce) |
void |
setLogReduceWhiteList(List<String> logReduceWhiteList) |
void |
setMaxTextLen(int maxTextLen) |
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 isLogReduceEnable()
public void setLogReduceEnable(boolean logReduce)
public 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 int getMaxTextLen()
public void setMaxTextLen(int maxTextLen)
public 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 © 2025. All Rights Reserved.