Skip to content

Commit

Permalink
allow for writing index as json string
Browse files Browse the repository at this point in the history
  • Loading branch information
firestar committed Dec 7, 2023
1 parent ef4dfab commit b853645
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'com.nucleodb'
version = '1.13.6'
version = '1.13.7'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,5 +256,7 @@ public List<Entry> startsWithInternal(String findString) {
return tmp.getPartialEntries().stream().collect(Collectors.toList());
}


public Node getRoot() {
return root;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.nucleodb.library.database.index.trie;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.common.collect.Lists;

import java.util.List;
Expand All @@ -24,6 +25,7 @@ public TreeMap<Integer, Node> getNodes() {
return nodes;
}

@JsonIgnore
public Node getParent() {
return parent;
}
Expand All @@ -36,6 +38,7 @@ public List<Entry> getEntries() {
return entries;
}

@JsonIgnore
public List<Entry> getPartialEntries() {
return partialEntries;
}
Expand Down

0 comments on commit b853645

Please sign in to comment.