/** * Generates an unsigned byte[] key from a {@link TermId}. * <p> * Note: The code that handles efficient batch insertion of terms into the * database replicates the logic for encoding the term identifier as an * unsigned long integer. * * @param id * The term identifier. * * @return The id expressed as an unsigned byte[] key of length 8. * * @see #key2Id() */ public byte[] id2key(final TermId<?> tid) { return tid.encode(getKeyBuilder().reset()).getKey(); }
/** * Generates an unsigned byte[] key from a {@link TermId}. * <p> * Note: The code that handles efficient batch insertion of terms into the * database replicates the logic for encoding the term identifier as an * unsigned long integer. * * @param id * The term identifier. * * @return The id expressed as an unsigned byte[] key of length 8. * * @see #key2Id() */ public byte[] id2key(final TermId<?> tid) { return tid.encode(getKeyBuilder().reset()).getKey(); }
.getIndexMetadata().getTupleSerializer(); final IKeyBuilder keyBuilder = tupSer.getKeyBuilder();
.getIndexMetadata().getTupleSerializer(); final IKeyBuilder keyBuilder = tupSer.getKeyBuilder();