public interface TermIndex extends Comparable<TermIndex>
| Modifier and Type | Field and Description |
|---|---|
static TermIndex[] |
EMPTY_TERMINDEX_ARRAY |
static LongFunction<String> |
LONG_TO_STRING |
| Modifier and Type | Method and Description |
|---|---|
long |
getIndex() |
long |
getTerm() |
static boolean |
isValidTerm(int term)
A term number is valid iff it is greater than zero.
|
static TermIndex |
newTermIndex(long term,
long index)
Create a new
TermIndex instance. |
static String |
toString(long term,
long index) |
compareTostatic final TermIndex[] EMPTY_TERMINDEX_ARRAY
static final LongFunction<String> LONG_TO_STRING
long getTerm()
long getIndex()
static boolean isValidTerm(int term)
static String toString(long term, long index)
Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.