Tabnine Logo
org.apache.hadoop.hbase.codec
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.hadoop.hbase.codec

Best Java code snippets using org.apache.hadoop.hbase.codec (Showing top 20 results out of 315)

origin: apache/hbase

/**
 * Implementation depends on {@link InputStream#available()}
 */
@Override
public Decoder getDecoder(final InputStream is) {
 return new KeyValueDecoder(is);
}
origin: apache/hbase

 @Override
 public Encoder getEncoder(OutputStream os) {
  return new MessageEncoder(os);
 }
}
origin: apache/hbase

 @Override
 public Encoder getEncoder(OutputStream os) {
  return new KeyValueEncoder(os);
 }
}
origin: apache/hbase

@Override
public boolean advance() throws IOException {
 int firstByte = in.read();
 if (firstByte == -1) {
  return false;
 } else {
  ((PBIS)in).unread(firstByte);
 }
 try {
  this.current = parseCell();
 } catch (IOException ioEx) {
  ((PBIS)in).resetBuf(1); // reset the buffer in case the underlying stream is read from upper layers
  rethrowEofException(ioEx);
 }
 return true;
}
origin: apache/hbase

 public static void main(String[] args) throws IOException {
  // How many Cells to encode/decode on each cycle.
  final int count = 100000;
  // How many times to do an operation; repeat gives hotspot chance to warm up.
  final int cycles = 30;

  Cell [] cells = getCells(count);
  int size = getRoughSize(cells);
  int initialBufferSize = 2 * size; // Multiply by 2 to ensure we don't have to grow buffer

  // Test KeyValue codec.
  doCodec(new KeyValueCodec(), cells, cycles, count, initialBufferSize);
  doCodec(new CellCodec(), cells, cycles, count, initialBufferSize);
  doCodec(new MessageCodec(), cells, cycles, count, initialBufferSize);
 }
}
origin: apache/hbase

 @Override
 public Encoder getEncoder(OutputStream os) {
  return new CellEncoder(os);
 }
}
origin: apache/hbase

/**
 * Implementation depends on {@link InputStream#available()}
 */
@Override
public Decoder getDecoder(final InputStream is) {
 return new KeyValueDecoder(is);
}
origin: apache/hbase

 @Override
 public Encoder getEncoder(OutputStream os) {
  return new CellEncoder(os);
 }
}
origin: apache/hbase

@Override
public Encoder getEncoder(OutputStream os) {
 return new KeyValueEncoder(os);
}
origin: apache/hbase

@Override
public Decoder getDecoder(InputStream is) {
 return new CellDecoder(is);
}
origin: apache/hbase

@Override
public Decoder getDecoder(InputStream is) {
 return new CellDecoder(is);
}
origin: apache/hbase

protected void checkFlushed() throws CodecException {
 if (this.flushed) throw new CodecException("Flushed; done");
}
origin: apache/hbase

public BaseDecoder(final InputStream in) {
 this.in = new PBIS(in, 1);
}
origin: apache/hbase

 @Override
 public Decoder getDecoder(ByteBuff buf) {
  return new ByteBuffKeyValueDecoder(buf);
 }
}
origin: apache/hbase

@Override
public Decoder getDecoder(InputStream is) {
 return new MessageDecoder(is);
}
origin: apache/hbase

@Override
public Decoder getDecoder(ByteBuff buf) {
 return new ByteBuffKeyValueDecoder(buf);
}
origin: apache/hbase

@Override
public Decoder getDecoder(ByteBuff buf) {
 return getDecoder(new ByteBuffInputStream(buf));
}
origin: apache/hbase

@Override
public Decoder getDecoder(ByteBuff buf) {
 return getDecoder(new ByteBuffInputStream(buf));
}
origin: apache/hbase

@Override
public Decoder getDecoder(ByteBuff buf) {
 return getDecoder(new ByteBuffInputStream(buf));
}
origin: apache/hbase

@Override
public Decoder getDecoder(InputStream is) {
 return (compression == null)
   ? new KeyValueCodecWithTags.KeyValueDecoder(is) : new CompressedKvDecoder(is, compression);
}
org.apache.hadoop.hbase.codec

Most used classes

  • Codec$Encoder
    Call flush when done. Some encoders may not put anything on the stream until flush is called. On flu
  • Codec$Decoder
    Implementations should implicitly clean up any resources allocated when the Decoder/CellScanner runs
  • Codec
    Encoder/Decoder for Cell.Like org.apache.hadoop.hbase.io.encoding.DataBlockEncoder only Cell-based r
  • CellCodec
    Basic Cell codec that just writes out all the individual elements of a Cell. Uses ints delimiting al
  • CellCodecWithTags
    Basic Cell codec that just writes out all the individual elements of a Cell including the tags. Uses
  • KeyValueCodecWithTags$KeyValueDecoder,
  • KeyValueCodecWithTags$KeyValueEncoder,
  • BaseDecoder$PBIS,
  • BaseDecoder,
  • CellCodec$CellDecoder,
  • CellCodec$CellEncoder,
  • CellCodecWithTags$CellDecoder,
  • CellCodecWithTags$CellEncoder,
  • CodecException,
  • KeyValueCodec$KeyValueDecoder,
  • KeyValueCodec$KeyValueEncoder,
  • KeyValueCodecWithTags,
  • KeyValueCodec$ByteBuffKeyValueDecoder,
  • KeyValueCodecWithTags$ByteBuffKeyValueDecoder
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