Docs: Update broken link to flake ids in uuid generators

This commit is contained in:
Alexander Reelsen 2017-09-04 10:48:19 +02:00
parent 666cf4b872
commit 3706a16baf
2 changed files with 10 additions and 5 deletions

View File

@ -23,8 +23,9 @@ import java.util.Base64;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
/** /**
* These are essentially flake ids (http://boundary.com/blog/2012/01/12/flake-a-decentralized-k-ordered-unique-id-generator-in-erlang) but * These are essentially flake ids, but we use 6 (not 8) bytes for timestamp, and use 3 (not 2) bytes for sequence number.
* we use 6 (not 8) bytes for timestamp, and use 3 (not 2) bytes for sequence number. * For more information about flake ids, check out
* https://archive.fo/2015.07.08-082503/http://www.boundary.com/blog/2012/01/flake-a-decentralized-k-ordered-unique-id-generator-in-erlang/
*/ */
class LegacyTimeBasedUUIDGenerator implements UUIDGenerator { class LegacyTimeBasedUUIDGenerator implements UUIDGenerator {

View File

@ -22,9 +22,13 @@ package org.elasticsearch.common;
import java.util.Base64; import java.util.Base64;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
/** These are essentially flake ids (http://boundary.com/blog/2012/01/12/flake-a-decentralized-k-ordered-unique-id-generator-in-erlang) but /**
* we use 6 (not 8) bytes for timestamp, and use 3 (not 2) bytes for sequence number. We also reorder bytes in a way that does not make ids * These are essentially flake ids but we use 6 (not 8) bytes for timestamp, and use 3 (not 2) bytes for sequence number. We also reorder
* sort in order anymore, but is more friendly to the way that the Lucene terms dictionary is structured. */ * bytes in a way that does not make ids sort in order anymore, but is more friendly to the way that the Lucene terms dictionary is
* structured.
* For more information about flake ids, check out
* https://archive.fo/2015.07.08-082503/http://www.boundary.com/blog/2012/01/flake-a-decentralized-k-ordered-unique-id-generator-in-erlang/
*/
class TimeBasedUUIDGenerator implements UUIDGenerator { class TimeBasedUUIDGenerator implements UUIDGenerator {