Class BinSearchUtils

java.lang.Object
org.aksw.commons.io.hadoop.binseach.v2.BinSearchUtils

public class BinSearchUtils extends Object
  • Constructor Details

    • BinSearchUtils

      public BinSearchUtils()
  • Method Details

    • readUntilDelimiter

      public static long readUntilDelimiter(InputStream in, byte delimiter, long allowedSearchBytes) throws IOException
      Find the delimiter byte within the next 'allowedSearchBytes' bytes. Returns -1 if none encountered. Returns number of bytes read.
      Throws:
      IOException
    • compareToPrefix

      public static int compareToPrefix(InputStream in, byte[] prefix) throws IOException
      Throws:
      IOException
    • configureStream

      public static InputStream configureStream(org.aksw.commons.io.input.SeekableReadableChannel<byte[]> channel, long end, byte[] prefix, BinSearchLevelCache levelCache) throws IOException
      Throws:
      IOException