@Override
	public String saveSQL() {
		StringBuilder buf = new StringBuilder();
		buf.append('(');
		if (hash.length == 0) {
			buf.append(')');
			return buf.toString();
		}
		hash[0].saveSQL(buf);
		for (int i = 1; i < hash.length; ++i) {
			buf.append(',');
			hash[i].saveSQL(buf);
		}
		buf.append(')');
		return buf.toString();
	}
Assuming -feature- is sorted and -hash- is empty, count the features and populate -hash- and -tf-
For every unique feature, look up its idf via -idflookup-
@param feature is the list of sorted hash features
@param wfactory is the WeightFactory used to decide feature weights
@param idflookup is the IDFLookup used to decide relative frequency of individual features
Ghidra/Framework/Generic/src/main/java/generic/lsh/vector/LSHCosineVector.java