public static class Engine.Delete extends Object implements Engine.Operation
Engine.Operation.Origin, Engine.Operation.Type
Constructor and Description |
---|
Engine.Delete(Engine.Delete template,
VersionType versionType) |
Engine.Delete(String type,
String id,
org.apache.lucene.index.Term uid) |
Engine.Delete(String type,
String id,
org.apache.lucene.index.Term uid,
long version,
VersionType versionType,
Engine.Operation.Origin origin,
long startTime,
boolean found) |
Modifier and Type | Method and Description |
---|---|
long |
endTime()
Returns operation end time in nanoseconds.
|
void |
endTime(long endTime) |
boolean |
found() |
Translog.Location |
getTranslogLocation() |
String |
id() |
Engine.Operation.Type |
opType() |
Engine.Operation.Origin |
origin() |
void |
setTranslogLocation(Translog.Location location) |
long |
startTime()
Returns operation start time in nanoseconds.
|
String |
type() |
org.apache.lucene.index.Term |
uid() |
void |
updateVersion(long version,
boolean found) |
long |
version()
before delete execution this is the version to be deleted.
|
VersionType |
versionType() |
public Engine.Delete(String type, String id, org.apache.lucene.index.Term uid, long version, VersionType versionType, Engine.Operation.Origin origin, long startTime, boolean found)
public Engine.Delete(Engine.Delete template, VersionType versionType)
public Engine.Operation.Type opType()
opType
in interface Engine.Operation
public Engine.Operation.Origin origin()
origin
in interface Engine.Operation
public String type()
public String id()
public org.apache.lucene.index.Term uid()
public void updateVersion(long version, boolean found)
public long version()
public VersionType versionType()
public boolean found()
public long startTime()
startTime
in interface Engine.Operation
public void endTime(long endTime)
public long endTime()
public void setTranslogLocation(Translog.Location location)
public Translog.Location getTranslogLocation()
Copyright © 2009–2016. All rights reserved.