src/main/java/chlx/hashing/lsh/LSH64BitGrouper.java
private boolean putUnchecked(long docId, @NotNull long[] lsh64BitSignature) {
		boolean ret = false;
		for (int stage = 0; stage < stage64Bit; ++stage) {
			LongArrayList docIdList = groupBuilder.get(stage).get(lsh64BitSignature[stage]);
			if (docIdList != null) {
				if (docIdList == NUL_LIST) {
					++writtenGroupNum;
					docIdList = new LongArrayList(2);
					groupBuilder.get(stage).put(lsh64BitSignature[stage], docIdList);
				}
				docIdList.add(docId);
				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 long[] lsh64BitSignature) {
		boolean ret = false;
		for (int stage = 0; stage < stage64Bit; ++stage) {
			LongArrayList docIdList = groupBuilder.get(stage).get(lsh64BitSignature[stage]);
			if (docIdList != null) {
				if (docIdList == NUL_LIST) {
					++writtenGroupNum;
					docIdList = new LongArrayList(2);
					groupBuilder.get(stage).put(lsh64BitSignature[stage], docIdList);
				}
				docIdList.add(docId);
				ret = true;
			}
		}
		return ret;
	}
private boolean putUnchecked ( long docId , @ NotNull long [ ] lsh64BitSignature ) { boolean ret = false ; for ( int stage = 0 ; stage < stage64Bit ; ++ stage ) { LongArrayList docIdList = groupBuilder . get ( stage ) . get ( lsh64BitSignature [ stage ] ) ; if ( docIdList != null ) { if ( docIdList == NUL_LIST ) { ++ writtenGroupNum ; docIdList = new LongArrayList ( 2 ) ; groupBuilder . get ( stage ) . put ( lsh64BitSignature [ stage ] , docIdList ) ; } docIdList . add ( docId ) ; ret = true ; } } return ret ; }
put docId into presented buckets inorder to extract dupGroups later
put docId into presented buckets inorder to extract dupGroups later