Skip to content

Conversation

@wojiaodoubao
Copy link
Contributor

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
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.

1 participant