Codota Logo
BytesStore$2
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
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.lucene/lucene-core

@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.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.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: 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.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: 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: harbby/presto-connectors

@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: 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 skipBytes(long count) {
 setPosition(getPosition() - count);
}
org.apache.lucene.util.fstBytesStore$2

Most used methods

  • getPosition
  • readByte
  • setPosition

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now