private void setId( long id ) { idField.setStringValue( Long.toString( id ) ); idValueField.setLongValue( id ); }
private void setId( long id ) { removeAllValueFields(); idField.setStringValue( Long.toString( id ) ); idValueField.setLongValue( id ); }
public void updateSeqID(long sequenceNumber, long primaryTerm) { this.seqID.seqNo.setLongValue(sequenceNumber); this.seqID.seqNoDocValue.setLongValue(sequenceNumber); this.seqID.primaryTerm.setLongValue(primaryTerm); }
/** * Makes the processing document as a tombstone document rather than a regular document. * Tombstone documents are stored in Lucene index to represent delete operations or Noops. */ ParsedDocument toTombstone() { assert docs().size() == 1 : "Tombstone should have a single doc [" + docs() + "]"; this.seqID.tombstoneField.setLongValue(1); rootDoc().add(this.seqID.tombstoneField); return this; }
public void updateSeqID(long sequenceNumber, long primaryTerm) { this.seqID.seqNo.setLongValue(sequenceNumber); this.seqID.seqNoDocValue.setLongValue(sequenceNumber); this.seqID.primaryTerm.setLongValue(primaryTerm); }
public void updateSeqID(long sequenceNumber, long primaryTerm) { this.seqID.seqNo.setLongValue(sequenceNumber); this.seqID.seqNoDocValue.setLongValue(sequenceNumber); this.seqID.primaryTerm.setLongValue(primaryTerm); }
@Override public void setDoubleValue(double value) { super.setLongValue( Double.doubleToRawLongBits( value ) ); }
@Override public void setDoubleValue(double value) { super.setLongValue( Double.doubleToRawLongBits( value ) ); }
tombstone.version().setLongValue(1L); assert tombstone.docs().size() == 1 : "Tombstone should have a single doc [" + tombstone + "]"; final ParseContext.Document doc = tombstone.docs().get(0);
assert tombstone.docs().size() == 1 : "Tombstone doc should have single doc [" + tombstone + "]"; tombstone.updateSeqID(plan.seqNoOfDeletion, delete.primaryTerm()); tombstone.version().setLongValue(plan.versionOfDeletion); final ParseContext.Document doc = tombstone.docs().get(0); assert doc.getField(SeqNoFieldMapper.TOMBSTONE_NAME) != null :
private Field getAndSetStoredField(String name, Long value) { Field f = this.storedFields.computeIfAbsent(name, (k) -> { return new StoredField(name, value); }); f.setLongValue(value); return f; }
public void updateVersion(long version) { this.version = version; this.doc.version().setLongValue(version); }
index.parsedDoc().version().setLongValue(plan.versionForIndexing); try { if (plan.addStaleOpToLucene) {
/** * Makes the processing document as a tombstone document rather than a regular document. * Tombstone documents are stored in Lucene index to represent delete operations or Noops. */ ParsedDocument toTombstone() { assert docs().size() == 1 : "Tombstone should have a single doc [" + docs() + "]"; this.seqID.tombstoneField.setLongValue(1); rootDoc().add(this.seqID.tombstoneField); return this; }
dateField.setLongValue(date.getTime()); doc.add(dateField);
tombstone.version().setLongValue(1L); assert tombstone.docs().size() == 1 : "Tombstone should have a single doc [" + tombstone + "]"; final ParseContext.Document doc = tombstone.docs().get(0);
assert tombstone.docs().size() == 1 : "Tombstone doc should have single doc [" + tombstone + "]"; tombstone.updateSeqID(plan.seqNoOfDeletion, delete.primaryTerm()); tombstone.version().setLongValue(plan.versionOfDeletion); final ParseContext.Document doc = tombstone.docs().get(0); assert doc.getField(SeqNoFieldMapper.TOMBSTONE_NAME) != null :
assert plan.versionForIndexing >= 0 : "version must be set. got " + plan.versionForIndexing; assert plan.indexIntoLucene; index.parsedDoc().version().setLongValue(plan.versionForIndexing); try { if (plan.useLuceneUpdateDocument) {
index.parsedDoc().version().setLongValue(plan.versionForIndexing); try { if (plan.addStaleOpToLucene) {