org.elasticsearch.index.engine
Class Engine.Index

java.lang.Object
  extended by org.elasticsearch.index.engine.Engine.Index
All Implemented Interfaces:
Engine.IndexingOperation, Engine.Operation
Enclosing interface:
Engine

public static class Engine.Index
extends Object
implements Engine.IndexingOperation


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.index.engine.Engine.Operation
Engine.Operation.Origin, Engine.Operation.Type
 
Constructor Summary
Engine.Index(DocumentMapper docMapper, org.apache.lucene.index.Term uid, ParsedDocument doc)
           
 
Method Summary
 org.apache.lucene.analysis.Analyzer analyzer()
           
 DocumentMapper docMapper()
           
 List<org.apache.lucene.document.Document> docs()
           
 long endTime()
          Returns operation end time in nanoseconds.
 Engine.Index endTime(long endTime)
           
 String id()
           
 Engine.Operation.Type opType()
           
 Engine.Operation.Origin origin()
           
 Engine.Index origin(Engine.Operation.Origin origin)
           
 String parent()
           
 ParsedDocument parsedDoc()
           
 String routing()
           
 BytesReference source()
           
 long startTime()
          Returns operation start time in nanoseconds.
 Engine.Index startTime(long startTime)
           
 long timestamp()
           
 long ttl()
           
 String type()
           
 org.apache.lucene.index.Term uid()
           
 UidField uidField()
           
 long version()
           
 Engine.Index version(long version)
           
 VersionType versionType()
           
 Engine.Index versionType(VersionType versionType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Engine.Index

public Engine.Index(DocumentMapper docMapper,
                    org.apache.lucene.index.Term uid,
                    ParsedDocument doc)
Method Detail

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.Index origin(Engine.Operation.Origin origin)

origin

public Engine.Operation.Origin origin()
Specified by:
origin in interface Engine.Operation

uid

public org.apache.lucene.index.Term uid()

parsedDoc

public ParsedDocument parsedDoc()
Specified by:
parsedDoc in interface Engine.IndexingOperation

version

public Engine.Index version(long version)

version

public long version()

versionType

public Engine.Index versionType(VersionType versionType)

versionType

public VersionType versionType()

docs

public List<org.apache.lucene.document.Document> docs()
Specified by:
docs in interface Engine.IndexingOperation

analyzer

public org.apache.lucene.analysis.Analyzer analyzer()

id

public String id()

type

public String type()

routing

public String routing()

parent

public String parent()

timestamp

public long timestamp()

ttl

public long ttl()

source

public BytesReference source()

uidField

public UidField uidField()

startTime

public Engine.Index startTime(long startTime)

startTime

public long startTime()
Returns operation start time in nanoseconds.


endTime

public Engine.Index endTime(long endTime)

endTime

public long endTime()
Returns operation end time in nanoseconds.



Copyright © 2009-2012. All Rights Reserved.