Tabnine Logo
BytesStore$2
Code IndexAdd Tabnine to your IDE (free)

How to use
BytesStore$2
in
org.apache.lucene.util.fst

Best Java code snippets using org.apache.lucene.util.fst.BytesStore$2 (Showing top 12 results out of 1,395)

origin: org.apache.lucene/lucene-core

@Override
public void setPosition(long pos) {
 // NOTE: a little weird because if you
 // setPosition(0), the next byte you read is
 // bytes[0] ... but I would expect bytes[-1] (ie,
 // EOF)...?
 int bufferIndex = (int) (pos >> blockBits);
 nextBuffer = bufferIndex-1;
 current = blocks.get(bufferIndex);
 nextRead = (int) (pos & blockMask);
 assert getPosition() == pos: "pos=" + pos + " getPos()=" + getPosition();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

@Override
public void skipBytes(long count) {
 setPosition(getPosition() - count);
}
origin: org.infinispan/infinispan-embedded-query

@Override
public void readBytes(byte[] b, int offset, int len) {
 for(int i=0;i<len;i++) {
  b[offset+i] = readByte();
 }
}
origin: harbby/presto-connectors

@Override
public void skipBytes(long count) {
 setPosition(getPosition() - count);
}
origin: harbby/presto-connectors

@Override
public void setPosition(long pos) {
 // NOTE: a little weird because if you
 // setPosition(0), the next byte you read is
 // bytes[0] ... but I would expect bytes[-1] (ie,
 // EOF)...?
 int bufferIndex = (int) (pos >> blockBits);
 nextBuffer = bufferIndex-1;
 current = blocks.get(bufferIndex);
 nextRead = (int) (pos & blockMask);
 assert getPosition() == pos: "pos=" + pos + " getPos()=" + getPosition();
}
origin: org.infinispan/infinispan-embedded-query

@Override
public void setPosition(long pos) {
 // NOTE: a little weird because if you
 // setPosition(0), the next byte you read is
 // bytes[0] ... but I would expect bytes[-1] (ie,
 // EOF)...?
 int bufferIndex = (int) (pos >> blockBits);
 nextBuffer = bufferIndex-1;
 current = blocks.get(bufferIndex);
 nextRead = (int) (pos & blockMask);
 assert getPosition() == pos: "pos=" + pos + " getPos()=" + getPosition();
}
origin: org.infinispan/infinispan-embedded-query

@Override
public void skipBytes(long count) {
 setPosition(getPosition() - count);
}
origin: harbby/presto-connectors

@Override
public void readBytes(byte[] b, int offset, int len) {
 for(int i=0;i<len;i++) {
  b[offset+i] = readByte();
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

@Override
public void setPosition(long pos) {
 // NOTE: a little weird because if you
 // setPosition(0), the next byte you read is
 // bytes[0] ... but I would expect bytes[-1] (ie,
 // EOF)...?
 int bufferIndex = (int) (pos >> blockBits);
 nextBuffer = bufferIndex-1;
 current = blocks.get(bufferIndex);
 nextRead = (int) (pos & blockMask);
 assert getPosition() == pos: "pos=" + pos + " getPos()=" + getPosition();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

@Override
public void readBytes(byte[] b, int offset, int len) {
 for(int i=0;i<len;i++) {
  b[offset+i] = readByte();
 }
}
origin: org.apache.lucene/lucene-core

@Override
public void skipBytes(long count) {
 setPosition(getPosition() - count);
}
origin: org.apache.lucene/lucene-core

@Override
public void readBytes(byte[] b, int offset, int len) {
 for(int i=0;i<len;i++) {
  b[offset+i] = readByte();
 }
}
org.apache.lucene.util.fstBytesStore$2

Most used methods

  • getPosition
  • readByte
  • setPosition

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • JList (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now