public class MetaImpl extends java.lang.Object implements Meta, java.io.Serializable
Meta.MetaType
Constructor and Description |
---|
MetaImpl(com.exalead.search.internal.answer.HitMeta meta) |
MetaImpl(com.exalead.search.internal.answer.MappedHitMeta meta,
com.exalead.search.internal.answer.MetaMapping metaMapping) |
Modifier and Type | Method and Description |
---|---|
double[] |
getDoubleValues() |
long[] |
getLongValues() |
java.lang.String |
getName()
Get the name of the meta.
|
java.lang.String |
getStringValue()
Get the first value of the meta as a string, or null if there is no value.
|
java.util.List<java.lang.String> |
getStringValues()
Get all values of the meta.
|
Meta.MetaType |
getType()
The type defines which of the getXXValue is relevant.
|
MetaValue |
getValue()
Get the first value of the meta.
|
java.util.List<MetaValue> |
getValues()
Get all values of the meta.
|
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
public MetaImpl(com.exalead.search.internal.answer.HitMeta meta)
public MetaImpl(com.exalead.search.internal.answer.MappedHitMeta meta, com.exalead.search.internal.answer.MetaMapping metaMapping)
public java.lang.String getName()
Meta
public void setName(java.lang.String name)
public Meta.MetaType getType()
Meta
public java.util.List<MetaValue> getValues()
Meta
public MetaValue getValue()
Meta
public long[] getLongValues() throws java.lang.IllegalArgumentException
getLongValues
in interface Meta
java.lang.IllegalArgumentException
- if the meta is not of long type.public double[] getDoubleValues()
getDoubleValues
in interface Meta
public java.util.List<java.lang.String> getStringValues()
Meta
getStringValues
in interface Meta
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getStringValue()
Meta
getStringValue
in interface Meta
Copyright © 2021 Dassault Systèmes, All Rights Reserved.