org.apache.lucene.index

## Class BinaryDocValues

- java.lang.Object
- - org.apache.lucene.index.BinaryDocValues

- Direct Known Subclasses:
    SortedDocValues

      public abstract class BinaryDocValues
      extends Object

  A per-document byte[]

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `BinaryDocValues()` Sole constructor.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract BytesRef` | `get(int docID)` Lookup the value for document.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BinaryDocValues

          protected BinaryDocValues()

      Sole constructor. (For invocation by subclass constructors, typically implicit.)

  - ### Method Detail

    - #### get

          public abstract BytesRef get(int docID)

      Lookup the value for document. The returned `BytesRef` may be re-used across calls to `get(int)` so make sure to `copy it` if you want to keep it around.

Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.