public interface DocValueFormat extends NamedWriteable
Modifier and Type | Interface and Description |
---|---|
static class |
DocValueFormat.DateTime |
static class |
DocValueFormat.Decimal |
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field and Description |
---|---|
static DocValueFormat |
BOOLEAN |
static DocValueFormat |
GEOHASH |
static DocValueFormat |
IP |
static DocValueFormat |
RAW |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(org.apache.lucene.util.BytesRef value)
Format a double value.
|
java.lang.String |
format(double value)
Format a double value.
|
java.lang.String |
format(long value)
Format a long value.
|
org.apache.lucene.util.BytesRef |
parseBytesRef(java.lang.String value)
Parse a value that was formatted with
format(BytesRef) back
to the original BytesRef. |
double |
parseDouble(java.lang.String value,
boolean roundUp,
java.util.concurrent.Callable<java.lang.Long> now)
Parse a value that was formatted with
format(double) back to
the original double value. |
long |
parseLong(java.lang.String value,
boolean roundUp,
java.util.concurrent.Callable<java.lang.Long> now)
Parse a value that was formatted with
format(long) back to the
original long value. |
getWriteableName
static final DocValueFormat RAW
static final DocValueFormat GEOHASH
static final DocValueFormat BOOLEAN
static final DocValueFormat IP
java.lang.String format(long value)
long
and date
fields.java.lang.String format(double value)
long
, double
or date
fields.java.lang.String format(org.apache.lucene.util.BytesRef value)
keyword
and ip
fields.long parseLong(java.lang.String value, boolean roundUp, java.util.concurrent.Callable<java.lang.Long> now)
format(long)
back to the
original long value.double parseDouble(java.lang.String value, boolean roundUp, java.util.concurrent.Callable<java.lang.Long> now)
format(double)
back to
the original double value.org.apache.lucene.util.BytesRef parseBytesRef(java.lang.String value)
format(BytesRef)
back
to the original BytesRef.