Skip to content

Conversation

@wojiaodoubao
Copy link
Contributor

@wojiaodoubao wojiaodoubao commented Dec 25, 2025

Introduce some builder classes to make creating scalar index easy. For example.

  ScalarIndexParams params = BTreeIndexParams.builder()
      .zoneSize(2048)
      .build();

  IndexParams indexParams = IndexParams.builder().setScalarIndexParams(scalarParams).build();

   // Create BTree index on 'id' column
   dataset.createIndex(
       Collections.singletonList("id"),
       IndexType.BTREE,
       Optional.of("btree_id_index"),
       indexParams,
       true);

@github-actions github-actions bot added enhancement New feature or request java labels Dec 25, 2025
@wojiaodoubao
Copy link
Contributor Author

wojiaodoubao commented Jan 4, 2026

Hi @BubbleCal , @majin1102 could you help review this when you have time, thanks very much~

Copy link
Contributor

@majin1102 majin1102 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me. left some comments.
Please take a look

@wojiaodoubao wojiaodoubao force-pushed the java-fts-api-builder branch 2 times, most recently from 7d6dffa to 17d7e8d Compare January 6, 2026 06:39
@majin1102 majin1102 merged commit 55e8532 into lance-format:main Jan 7, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request java

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants