public enum BitmapDocumentFormat extends Enum<BitmapDocumentFormat>
| Modifier and Type | Field and Description |
|---|---|
static String |
LABEL |
static String |
RANGE |
| Modifier and Type | Method and Description |
|---|---|
void |
addLabelAndSearchFields(org.apache.lucene.document.Document document,
long label,
Bitmap bitmap) |
void |
addRangeValuesField(org.apache.lucene.document.Document doc,
long range) |
BitmapFormat |
bitmapFormat() |
boolean |
isLabelBitmapField(org.apache.lucene.index.IndexableField field) |
boolean |
isRangeField(org.apache.lucene.index.IndexableField field) |
boolean |
isRangeOrLabelField(org.apache.lucene.index.IndexableField field) |
org.apache.lucene.index.IndexableField |
labelField(long key,
long bitmap) |
long |
labelId(org.apache.lucene.index.IndexableField field) |
org.apache.lucene.search.Query |
labelQuery(int labelId) |
org.apache.lucene.index.IndexableField |
labelSearchField(long label) |
org.apache.lucene.search.Query |
labelsQuery(org.apache.lucene.search.BooleanClause.Occur occur,
int[] labelIds)
Builds a
Query suitable for returning documents of nodes having all or any
(depending on occur) of the given labelIds. |
org.apache.lucene.index.IndexableField |
rangeField(long range) |
long |
rangeOf(org.apache.lucene.index.IndexableField field) |
org.apache.lucene.search.Query |
rangeQuery(long range) |
org.apache.lucene.index.Term |
rangeTerm(org.apache.lucene.document.Document document) |
org.apache.lucene.index.Term |
rangeTerm(long range) |
Bitmap |
readBitmap(org.apache.lucene.index.IndexableField field) |
String |
toString() |
static BitmapDocumentFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BitmapDocumentFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BitmapDocumentFormat _32
public static final BitmapDocumentFormat _64
public static final String RANGE
public static final String LABEL
public static BitmapDocumentFormat[] values()
for (BitmapDocumentFormat c : BitmapDocumentFormat.values()) System.out.println(c);
public static BitmapDocumentFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<BitmapDocumentFormat>public BitmapFormat bitmapFormat()
public long rangeOf(org.apache.lucene.index.IndexableField field)
public org.apache.lucene.search.Query labelQuery(int labelId)
public org.apache.lucene.search.Query labelsQuery(org.apache.lucene.search.BooleanClause.Occur occur,
int[] labelIds)
Query suitable for returning documents of nodes having all or any
(depending on occur) of the given labelIds.occur - BooleanClause.Occur to use in the query.labelIds - label ids to query for.Query for searching for documents with (all or any) of the label ids.public org.apache.lucene.search.Query rangeQuery(long range)
public org.apache.lucene.index.IndexableField rangeField(long range)
public void addRangeValuesField(org.apache.lucene.document.Document doc,
long range)
public org.apache.lucene.index.IndexableField labelField(long key,
long bitmap)
public void addLabelAndSearchFields(org.apache.lucene.document.Document document,
long label,
Bitmap bitmap)
public org.apache.lucene.index.IndexableField labelSearchField(long label)
public long labelId(org.apache.lucene.index.IndexableField field)
public org.apache.lucene.index.Term rangeTerm(long range)
public org.apache.lucene.index.Term rangeTerm(org.apache.lucene.document.Document document)
public boolean isRangeOrLabelField(org.apache.lucene.index.IndexableField field)
public boolean isRangeField(org.apache.lucene.index.IndexableField field)
public boolean isLabelBitmapField(org.apache.lucene.index.IndexableField field)
public Bitmap readBitmap(org.apache.lucene.index.IndexableField field)
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.