public final class PagedBytes extends Object implements Accountable
| Modifier and Type | Class and Description | 
|---|---|
| class  | PagedBytes.PagedBytesDataInput | 
| class  | PagedBytes.PagedBytesDataOutput | 
| static class  | PagedBytes.ReaderProvides methods to read BytesRefs from a frozen
  PagedBytes. | 
| Constructor and Description | 
|---|
| PagedBytes(int blockBits)1<<blockBits must be bigger than biggest single
  BytesRef slice that will be pulled | 
| Modifier and Type | Method and Description | 
|---|---|
| void | copy(BytesRef bytes,
    BytesRef out)Copy BytesRef in, setting BytesRef out to the result. | 
| void | copy(IndexInput in,
    long byteCount)Read this many bytes from in | 
| long | copyUsingLengthPrefix(BytesRef bytes)Copy bytes in, writing the length as a 1 or 2 byte
  vInt prefix. | 
| PagedBytes.Reader | freeze(boolean trim)Commits final byte[], trimming it if necessary and if trim=true | 
| Collection<Accountable> | getChildResources()Returns nested resources of this class. | 
| PagedBytes.PagedBytesDataInput | getDataInput()Returns a DataInput to read values from this
  PagedBytes instance. | 
| PagedBytes.PagedBytesDataOutput | getDataOutput()Returns a DataOutput that you may use to write into
  this PagedBytes instance. | 
| long | getPointer() | 
| long | ramBytesUsed()Return the memory usage of this object in bytes. | 
public PagedBytes(int blockBits)
public void copy(IndexInput in, long byteCount) throws IOException
IOExceptionpublic void copy(BytesRef bytes, BytesRef out)
public PagedBytes.Reader freeze(boolean trim)
public long getPointer()
public long ramBytesUsed()
AccountableramBytesUsed in interface Accountablepublic Collection<Accountable> getChildResources()
AccountablegetChildResources in interface AccountableAccountablespublic long copyUsingLengthPrefix(BytesRef bytes)
public PagedBytes.PagedBytesDataInput getDataInput()
public PagedBytes.PagedBytesDataOutput getDataOutput()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.