public class GetSetCopy {
public static HotelVo copy(HotelEntity entity) {
HotelVo vo = new HotelVo();
vo.setId(entity.getId());
vo.setName(entity.getName());
vo.setAddress(entity.getAddress());
vo.setPhone(entity.getPhone());
vo.setCreateTime(entity.getCreateTime());
vo.setUpdateTime(entity.getUpdateTime());
vo.setPrice(entity.getPrice());
vo.setKp(entity.getKp());
return vo;
}
}
public class ApacheBeanUtilsCopy {
public static HotelVo copy(HotelEntity entity) throws Exception {
HotelVo vo = new HotelVo();
BeanUtils.copyProperties(vo, entity);
return vo;
}
}
public class ApachePropertyUtilsCopy {
public static HotelVo copy(HotelEntity entity) throws Exception {
HotelVo vo = new HotelVo();
PropertyUtils.copyProperties(vo, entity);
return vo;
}
}
public class CglibBeanCopy {
public static HotelVo copy(HotelEntity entity) {
HotelVo vo = new HotelVo();
BeanCopier copier = BeanCopier.create(entity.getClass(), HotelVo.class, false);
copier.copy(entity, vo, null);
return vo;
}
}
public class SpringBeanUtilsCopy {
public static HotelVo copy(HotelEntity entity) {
HotelVo vo = new HotelVo();
BeanUtils.copyProperties(entity, vo);
return vo;
}
}
# vi: ft=dosini
[main]
# Enables context sensitive auto-completion. If this is disabled the all
# possible completions will be listed.
smart_completion = True
# Multi-line mode allows breaking up the sql statements into multiple lines. If
# this is set to True, then the end of the statements must have a semi-colon.
# If this is set to False then sql statements can't be split into multiple
# lines. End of line (return) is considered as the end of the statement.
multi_line = False
# log_file location.
log_file = ~/.mycli.log
# Default log level. Possible values: "CRITICAL", "ERROR", "WARNING", "INFO"
# and "DEBUG".
log_level = INFO
# Timing of sql statments and table rendering.
timing = True
# Table format. Possible values: psql, plain, simple, grid, fancy_grid, pipe,
# orgtbl, rst, mediawiki, html, latex, latex_booktabs.
# Recommended: psql, fancy_grid and grid.
table_format = psql
# Syntax Style. Possible values: manni, igor, xcode, vim, autumn, vs, rrt,
# native, perldoc, borland, tango, emacs, friendly, monokai, paraiso-dark,
# colorful, murphy, bw, pastie, paraiso-light, trac, default, fruity
syntax_style = default
# Keybindings: Possible values: emacs, vi
key_bindings = emacs
# MySQL prompt
# \t - Product type (Percona, MySQL, Mariadb)
# \u - Username
# \h - Hostname of the server
# \d - Database name
prompt = '\t \u@\h:\d> '
org.elasticsearch.index.query.QueryParsingException: [merchant_sea] Failed to parse
at org.elasticsearch.index.query.IndexQueryParserService.parseQuery(IndexQueryParserService.java:370)
at org.elasticsearch.action.count.TransportCountAction.shardOperation(TransportCountAction.java:187)
at org.elasticsearch.action.count.CrateTransportCountAction.shardOperation(CrateTransportCountAction.java:119)
at org.elasticsearch.action.count.CrateTransportCountAction.shardOperation(CrateTransportCountAction.java:49)
at org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$AsyncBroadcastAction$1.run(TransportBroadcastOperationAction.java:171)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.lucene.util.automaton.TooComplexToDeterminizeException: Determinizing automaton would result in more than 10000 states.
at org.apache.lucene.util.automaton.Operations.determinize(Operations.java:743)
at org.apache.lucene.util.automaton.RunAutomaton.<init>(RunAutomaton.java:138)
at org.apache.lucene.util.automaton.ByteRunAutomaton.<init>(ByteRunAutomaton.java:32)
at org.apache.lucene.util.automaton.CompiledAutomaton.<init>(CompiledAutomaton.java:203)
at org.apache.lucene.search.AutomatonQuery.<init>(AutomatonQuery.java:84)
at org.apache.lucene.search.AutomatonQuery.<init>(AutomatonQuery.java:65)
at org.apache.lucene.search.WildcardQuery.<init>(WildcardQuery.java:57)
at org.elasticsearch.index.query.WildcardQueryParser.parse(WildcardQueryParser.java:106)
at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:281)
at org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:93)
at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:281)
at org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:93)
at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:281)
at org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:93)
at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:281)
at org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:93)
at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:281)
at org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:93)
at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:281)
at org.elasticsearch.index.query.IndexQueryParserService.innerParse(IndexQueryParserService.java:382)
at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:281)
at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:276)
at org.elasticsearch.index.query.IndexQueryParserService.parseQuery(IndexQueryParserService.java:354)
... 7 more
/** 匹配字符串 */
public static final char WILDCARD_STRING = '*';
/** 匹配单个字符 */
public static final char WILDCARD_CHAR = '?';
/** 转义符 */
public static final char WILDCARD_ESCAPE = '\\';
public AutomatonQuery(final Term term, Automaton automaton) {
this(term, automaton, Operations.DEFAULT_MAX_DETERMINIZED_STATES);
}
/**
* Create a new AutomatonQuery from an {@link Automaton}.
*
* @param term Term containing field and possibly some pattern structure. The
* term text is ignored.
* @param automaton Automaton to run, terms that are accepted are considered a
* match.
* @param maxDeterminizedStates maximum number of states in the resulting
* automata. If the automata would need more than this many states
* TooComplextToDeterminizeException is thrown. Higher number require more
* space but can process more complex automata.
*/
public AutomatonQuery(final Term term, Automaton automaton, int maxDeterminizedStates) {
super(term.field());
this.term = term;
this.automaton = automaton;
this.compiled = new CompiledAutomaton(automaton, null, true, maxDeterminizedStates);
}
final public class Operations {
/**
* Default maximum number of states that {@link Operations#determinize} should create.
*/
public static final int DEFAULT_MAX_DETERMINIZED_STATES = 10000;
...
}
xiaobaoqiu@xiaobaoqiu:~/octopress$ whoami
xiaobaoqiu
xiaobaoqiu@xiaobaoqiu:~/octopress$ who am i
xiaobaoqiu pts/24 2015-07-15 14:03 (:0)
xiaobaoqiu@xiaobaoqiu:~/octopress$ who mom likes
xiaobaoqiu pts/24 2015-07-15 14:03 (:0)
5.id
id - print real and effective user and group IDs
12
xiaobaoqiu@xiaobaoqiu:~/octopress$ id
uid=1000(xiaobaoqiu) gid=1000(xiaobaoqiu) 组=1000(xiaobaoqiu),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),124(sambashare)
6.last
last, lastb - show listing of last logged in users
12345678910111213141516
xiaobaoqiu@xiaobaoqiu:~/octopress$ last
xiaobaoq pts/26 :0 Wed Jul 15 17:41 still logged in
xiaobaoq pts/25 :0 Wed Jul 15 14:36 still logged in
xiaobaoq pts/24 :0 Wed Jul 15 14:03 still logged in
xiaobaoq pts/23 :0 Wed Jul 15 14:02 still logged in
xiaobaoq pts/22 :0 Wed Jul 15 13:26 still logged in
xiaobaoq pts/20 :0 Wed Jul 15 13:14 still logged in
xiaobaoq pts/20 :0 Wed Jul 15 13:14 - 13:14 (00:00)
xiaobaoq pts/18 :0 Wed Jul 15 13:09 still logged in
xiaobaoq pts/14 :0 Wed Jul 15 13:09 still logged in
xiaobaoq pts/13 :0 Wed Jul 15 13:09 still logged in
xiaobaoq pts/12 :0 Wed Jul 15 13:09 still logged in
xiaobaoq pts/8 :0 Wed Jul 15 11:28 still logged in
xiaobaoq pts/7 :0 Wed Jul 15 11:12 still logged in
xiaobaoq pts/2 :0 Wed Jul 15 11:12 still logged in
xiaobaoq pts/1 :0 Wed Jul 15 10:35 still logged in