org.elasticsearch.index.engine
Class Engine.Create
java.lang.Object
org.elasticsearch.index.engine.Engine.Create
- All Implemented Interfaces:
- Engine.IndexingOperation, Engine.Operation
- Enclosing interface:
- Engine
public static class Engine.Create
- extends Object
- implements Engine.IndexingOperation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Engine.Create
public Engine.Create(DocumentMapper docMapper,
org.apache.lucene.index.Term uid,
ParsedDocument doc)
docMapper
public DocumentMapper docMapper()
- Specified by:
docMapper
in interface Engine.IndexingOperation
opType
public Engine.Operation.Type opType()
- Specified by:
opType
in interface Engine.Operation
origin
public Engine.Create origin(Engine.Operation.Origin origin)
origin
public Engine.Operation.Origin origin()
- Specified by:
origin
in interface Engine.Operation
parsedDoc
public ParsedDocument parsedDoc()
- Specified by:
parsedDoc
in interface Engine.IndexingOperation
uid
public org.apache.lucene.index.Term uid()
type
public String type()
id
public String id()
routing
public String routing()
timestamp
public long timestamp()
ttl
public long ttl()
version
public long version()
version
public Engine.Create version(long version)
versionType
public VersionType versionType()
versionType
public Engine.Create versionType(VersionType versionType)
parent
public String parent()
docs
public List<org.apache.lucene.document.Document> docs()
- Specified by:
docs
in interface Engine.IndexingOperation
analyzer
public org.apache.lucene.analysis.Analyzer analyzer()
source
public BytesReference source()
uidField
public UidField uidField()
startTime
public Engine.Create startTime(long startTime)
startTime
public long startTime()
- Returns operation start time in nanoseconds.
endTime
public Engine.Create endTime(long endTime)
endTime
public long endTime()
- Returns operation end time in nanoseconds.
Copyright © 2009-2012. All Rights Reserved.