MutableIdIndexMapping instead.@Deprecated public class Indexer extends Object implements Index
| Constructor and Description |
|---|
Indexer()
Deprecated.
Construct a new empty indexer.
|
| Modifier and Type | Method and Description |
|---|---|
MutableSparseVector |
convertArrayToVector(double[] values)
Deprecated.
This method is used to convert arrays to sparse arrays.
|
long |
getId(int idx)
Deprecated.
Get the id for an index.
|
LongList |
getIds()
Deprecated.
Get the list of IDs.
|
int |
getIndex(long id)
Deprecated.
Get the index of an id.
|
int |
getObjectCount()
Deprecated.
Get the number of IDs in the index.
|
int |
internId(long id)
Deprecated.
Get an index for an ID, generating a new one if necessary.
|
public Indexer()
public long getId(int idx)
Indexpublic LongList getIds()
Indexpublic int getIndex(long id)
Indexpublic int getObjectCount()
IndexgetObjectCount in interface Indexpublic int internId(long id)
id - The ID.public MutableSparseVector convertArrayToVector(double[] values)
IndexconvertArrayToVector in interface Indexvalues - A array of double value.