Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods to HDTManager store an index at custom place #90

Open
jmkeil opened this issue Jan 23, 2019 · 2 comments
Open

Add methods to HDTManager store an index at custom place #90

jmkeil opened this issue Jan 23, 2019 · 2 comments

Comments

@jmkeil
Copy link

jmkeil commented Jan 23, 2019

Currently, a index created with HDTManager::doIndexedHDT will automatically be storied to a default path (the working directory). It would be very helpful to provide methods to

  • create an index in memory, without writing them to the file system; current workaround:
((TriplesPrivate) hdt.getTriples()).generateIndex(null);
  • store a existing index into a provided OutputStream out; current workaround:
((TriplesPrivate) hdt.getTriples()).saveIndex(out, new ControlInformation(), null);
  • Load an earlier created index from a provided InputStream in; current workaround:
ControlInformation ci = new ControlInformation();
ci.load(in);
((TriplesPrivate) hdt.getTriples()).loadIndex(in, ci, null);

I think, a user of the library should not need to go that deep into the implementation to do this.

@jmkeil jmkeil changed the title Add methods to HDTManager store a index at custom place Add methods to HDTManager store an index at custom place Jan 23, 2019
@mielvds
Copy link
Member

mielvds commented Apr 16, 2021

Hi @jmkeil would you mind opening a PR for this?

@jmkeil
Copy link
Author

jmkeil commented Apr 27, 2021

Hi @jmkeil would you mind opening a PR for this?

As I decided against using HDT in my project, I don't have time to do that. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants