public class OrientGraphCommand extends Object implements OCommandRequest
Constructor and Description |
---|
OrientGraphCommand(OrientBaseGraph iGraph,
OCommandRequest iCommand) |
Modifier and Type | Method and Description |
---|---|
<RET> RET |
execute(Object... iArgs) |
OCommandContext |
getContext() |
String |
getFetchPlan()
This api is deprecated use sql keyword "FETCHPLAN" instead
|
int |
getLimit()
This api is deprecated use sql keyword "LIMIT" instead
|
OCommandContext.TIMEOUT_STRATEGY |
getTimeoutStrategy()
This api is deprecated use sql keyword "TIMEOUT" instead
|
long |
getTimeoutTime()
This api is deprecated use sql keyword "TIMEOUT" instead
|
boolean |
isIdempotent()
Returns true if the command doesn't change the database, otherwise false.
|
OCommandRequest |
setContext(OCommandContext iContext) |
<RET extends OCommandRequest> |
setFetchPlan(String iFetchPlan)
This api is deprecated use sql keyword "FETCHPLAN" instead
|
OCommandRequest |
setLimit(int iLimit)
This api is deprecated use sql keyword "LIMIT" instead
|
void |
setTimeout(long timeout,
OCommandContext.TIMEOUT_STRATEGY strategy)
This api is deprecated use sql keyword "TIMEOUT" instead
|
void |
setUseCache(boolean iUseCache) |
public OrientGraphCommand(OrientBaseGraph iGraph, OCommandRequest iCommand)
public <RET> RET execute(Object... iArgs)
execute
in interface OCommandRequest
public int getLimit()
OCommandRequest
Returns the limit of result set. -1 means no limits.
getLimit
in interface OCommandRequest
public OCommandRequest setLimit(int iLimit)
OCommandRequest
Sets the maximum items the command can returns. -1 means no limits.
setLimit
in interface OCommandRequest
iLimit
- -1 = no limit. 1 to N to limit the result set.public long getTimeoutTime()
OCommandRequest
Returns the command timeout. 0 means no timeout.
getTimeoutTime
in interface OCommandRequest
public OCommandContext.TIMEOUT_STRATEGY getTimeoutStrategy()
OCommandRequest
Returns the command timeout strategy between the defined ones.
getTimeoutStrategy
in interface OCommandRequest
public void setTimeout(long timeout, OCommandContext.TIMEOUT_STRATEGY strategy)
OCommandRequest
Sets the command timeout. When the command execution time is major than the timeout the command returns
setTimeout
in interface OCommandRequest
public boolean isIdempotent()
OCommandRequest
isIdempotent
in interface OCommandRequest
public String getFetchPlan()
OCommandRequest
Returns the fetch plan if any
getFetchPlan
in interface OCommandRequest
public <RET extends OCommandRequest> RET setFetchPlan(String iFetchPlan)
OCommandRequest
Set the fetch plan. The format is:
<field>:<depth-level>*Where:
children:-1 parent:0 sibling:3 *:0
setFetchPlan
in interface OCommandRequest
public void setUseCache(boolean iUseCache)
setUseCache
in interface OCommandRequest
public OCommandContext getContext()
getContext
in interface OCommandRequest
public OCommandRequest setContext(OCommandContext iContext)
setContext
in interface OCommandRequest
Copyright © 2009–2020 OrientDB. All rights reserved.