Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class SeqNoFieldMapper.SequenceIDFields
java.lang.Object
org.elasticsearch.index.mapper.SeqNoFieldMapper.SequenceIDFields
- Enclosing class:
SeqNoFieldMapper
A sequence ID, which is made up of a sequence number (both the searchable
and doc_value version of the field) and the primary term.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFields
(LuceneDocument document) Build and empty sequence ID who's values can be assigned later by callingset(long, long)
.void
set
(long seqNo, long primaryTerm) Update the values of the_seq_no
andprimary_term
fields to the specified value.
-
Method Details
-
addFields
-
set
public void set(long seqNo, long primaryTerm) Update the values of the_seq_no
andprimary_term
fields to the specified value. Called in the engine long after parsing. -
emptySeqID
Build and empty sequence ID who's values can be assigned later by callingset(long, long)
. -
tombstone
-