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)
Index
public LongList getIds()
Index
public int getIndex(long id)
Index
public int getObjectCount()
Index
getObjectCount
in interface Index
public int internId(long id)
id
- The ID.public MutableSparseVector convertArrayToVector(double[] values)
Index
convertArrayToVector
in interface Index
values
- A array of double value.