Created
February 26, 2014 20:11
-
-
Save okram/9237525 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
private SliceRange getSliceRange(final VertexQueryFilter inputFilter, final int limit) { | |
final SliceQuery slice = TitanInputFormat.inputSlice(inputFilter, this.graph); | |
final SliceRange sliceRange = new SliceRange(); | |
sliceRange.setStart(slice.getSliceStart().asByteBuffer()); | |
sliceRange.setFinish(slice.getSliceEnd().asByteBuffer()); | |
sliceRange.setCount(Math.min(limit, slice.getLimit())); | |
return sliceRange; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment