@Test public void testLongOffsetTermGenerator() throws Exception { JCas cas = JCasFactory.createJCas("de.julielab.jcore.types.jcore-all-types"); Annotation a = new Annotation(cas, 1234, 9876); Long offsets = TermGenerators.longOffsetTermGenerator().asKey(a); assertEquals(1234, (int)(offsets >> 32)); assertEquals(9876, (int)(offsets >> 0)); }
public static LongOffsetIndexTermGenerator longOffsetTermGenerator() { return new LongOffsetIndexTermGenerator(); }
TermGenerators { public static LongOffsetIndexTermGenerator longOffsetTermGenerator() { return new LongOffsetIndexTermGenerator(); } }
TermGenerators { public static LongOffsetIndexTermGenerator longOffsetTermGenerator() { return new LongOffsetIndexTermGenerator(); }  }
TermGenerators { public static LongOffsetIndexTermGenerator longOffsetTermGenerator() { return new LongOffsetIndexTermGenerator(); }  static IndexTermGenerator<String> nGramTermGenerator(int n); static IndexTermGenerator<String> edgeNGramTermGenerator(int n); static IndexTermGenerator<String> prefixTermGenerator(int maxLength); static IndexTermGenerator<String> suffixTermGenerator(int maxLength); static IndexTermGenerator<String> exactPrefixTermGenerator(int length); static IndexTermGenerator<String> exactSuffixTermGenerator(int length); static LongOffsetIndexTermGenerator longOffsetTermGenerator(); }
TermGenerators { public static LongOffsetIndexTermGenerator longOffsetTermGenerator() { return new LongOffsetIndexTermGenerator(); }  static IndexTermGenerator<String> nGramTermGenerator(int n); static IndexTermGenerator<String> edgeNGramTermGenerator(int n); static IndexTermGenerator<String> prefixTermGenerator(int maxLength); static IndexTermGenerator<String> suffixTermGenerator(int maxLength); static IndexTermGenerator<String> exactPrefixTermGenerator(int length); static IndexTermGenerator<String> exactSuffixTermGenerator(int length); static LongOffsetIndexTermGenerator longOffsetTermGenerator();  }