src/main/java/chlx/hashing/lsh/LSHGrouper.java
private boolean putUnchecked(long docId, @NotNull int[] hash) {
		boolean ret = false;
		for (int stage = 0; stage < stages; ++stage) {
			if (groupBuilder.computeIfPresent(LSHUtils.hashStageBucket(stage, hash[stage]), (bucket, docIdList) -> {
				docIdList.add(docId);
				return docIdList;
			}) != null) {
				ret = true;
			}
		}
		return ret;
	}
/**
	 * put docId into presented buckets inorder to extract dupGroups later
	 */
put docId into presented buckets inorder to extract dupGroups later
put docId into presented buckets inorder to extract dupGroups later
private boolean putUnchecked(long docId, @NotNull int[] hash) {
		boolean ret = false;
		for (int stage = 0; stage < stages; ++stage) {
			if (groupBuilder.computeIfPresent(LSHUtils.hashStageBucket(stage, hash[stage]), (bucket, docIdList) -> {
				docIdList.add(docId);
				return docIdList;
			}) != null) {
				ret = true;
			}
		}
		return ret;
	}
private boolean putUnchecked ( long docId , @ NotNull int [ ] hash ) { boolean ret = false ; for ( int stage = 0 ; stage < stages ; ++ stage ) { if ( groupBuilder . computeIfPresent ( LSHUtils . hashStageBucket ( stage , hash [ stage ] ) , ( bucket , docIdList ) -> { docIdList . add ( docId ) ; return docIdList ; } ) != null ) { ret = true ; } } return ret ; }
put docId into presented buckets inorder to extract dupGroups later
put docId into presented buckets inorder to extract dupGroups later