code: public static FieldDataTermsQuery newBytes(final byte[] encodedTerms, final IndexFieldData fieldData, final long cacheKey) {
      return new BytesFieldDataTermsQuery(encodedTerms, fieldData, cacheKey);
    }
docs: Get a {@link FieldDataTermsQuery} that filters on non-numeric terms found in a hppc {@link LongHashSet} of
  {@link BytesRef}.
  
  @param encodedTerms  An encoded set of terms.
  @param fieldData     The fielddata for the field.
  @param cacheKey      A unique key to use for caching this query.
  @return the query.