-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revision of io package for improved binsearch
- Loading branch information
Showing
87 changed files
with
3,789 additions
and
519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...ons-io-buffers/src/main/java/org/aksw/commons/io/binseach/BinarySearchRequestBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package org.aksw.commons.io.binseach; | ||
|
||
import java.io.InputStream; | ||
import java.util.stream.Stream; | ||
|
||
import org.aksw.commons.io.input.ReadableChannelSupplier; | ||
|
||
public class BinarySearchRequestBuilder { | ||
protected byte[] prefix; | ||
protected long splitSize; | ||
protected int splitCount; | ||
|
||
public BinarySearchRequestBuilder setPrefix(byte[] prefix) { | ||
this.prefix = prefix; | ||
return this; | ||
} | ||
|
||
public BinarySearchRequestBuilder setPrefix(String prefix) { | ||
this.prefix = prefix == null ? null : prefix.getBytes(); | ||
return this; | ||
} | ||
|
||
public BinarySearchRequestBuilder setSplitSize(long splitSize) { | ||
this.splitSize = splitSize; | ||
this.splitCount = -1; | ||
return this; | ||
} | ||
|
||
public BinarySearchRequestBuilder setSplitCount(int splitCount) { | ||
this.splitCount = splitCount; | ||
this.splitSize = -1; | ||
return this; | ||
} | ||
|
||
public InputStream find() { | ||
return null; | ||
} | ||
|
||
public Stream<ReadableChannelSupplier<byte[]>> findParallel() { | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.