org.elasticsearch.common.xcontent.support
Class XContentMapValues
java.lang.Object
org.elasticsearch.common.xcontent.support.XContentMapValues
public class XContentMapValues
- extends Object
Method Summary |
static List<Object> |
extractRawValues(String path,
Map<String,Object> map)
Extracts raw values (string, int, and so on) based on the path provided returning all of them
as a single list. |
static Object |
extractValue(String path,
Map<String,Object> map)
|
static Map<String,Object> |
filter(Map<String,Object> map,
String[] includes,
String[] excludes)
|
static boolean |
isArray(Object node)
|
static boolean |
isObject(Object node)
|
static boolean |
nodeBooleanValue(Object node)
|
static boolean |
nodeBooleanValue(Object node,
boolean defaultValue)
|
static byte |
nodeByteValue(Object node)
|
static byte |
nodeByteValue(Object node,
byte defaultValue)
|
static double |
nodeDoubleValue(Object node)
|
static double |
nodeDoubleValue(Object node,
double defaultValue)
|
static float |
nodeFloatValue(Object node)
|
static float |
nodeFloatValue(Object node,
float defaultValue)
|
static int |
nodeIntegerValue(Object node)
|
static int |
nodeIntegerValue(Object node,
int defaultValue)
|
static long |
nodeLongValue(Object node)
|
static long |
nodeLongValue(Object node,
long defaultValue)
|
static short |
nodeShortValue(Object node)
|
static short |
nodeShortValue(Object node,
short defaultValue)
|
static String |
nodeStringValue(Object node,
String defaultValue)
|
static TimeValue |
nodeTimeValue(Object node)
|
static TimeValue |
nodeTimeValue(Object node,
TimeValue defaultValue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XContentMapValues
public XContentMapValues()
extractRawValues
public static List<Object> extractRawValues(String path,
Map<String,Object> map)
- Extracts raw values (string, int, and so on) based on the path provided returning all of them
as a single list.
extractValue
public static Object extractValue(String path,
Map<String,Object> map)
filter
public static Map<String,Object> filter(Map<String,Object> map,
String[] includes,
String[] excludes)
isObject
public static boolean isObject(Object node)
isArray
public static boolean isArray(Object node)
nodeStringValue
public static String nodeStringValue(Object node,
String defaultValue)
nodeFloatValue
public static float nodeFloatValue(Object node,
float defaultValue)
nodeFloatValue
public static float nodeFloatValue(Object node)
nodeDoubleValue
public static double nodeDoubleValue(Object node,
double defaultValue)
nodeDoubleValue
public static double nodeDoubleValue(Object node)
nodeIntegerValue
public static int nodeIntegerValue(Object node)
nodeIntegerValue
public static int nodeIntegerValue(Object node,
int defaultValue)
nodeShortValue
public static short nodeShortValue(Object node,
short defaultValue)
nodeShortValue
public static short nodeShortValue(Object node)
nodeByteValue
public static byte nodeByteValue(Object node,
byte defaultValue)
nodeByteValue
public static byte nodeByteValue(Object node)
nodeLongValue
public static long nodeLongValue(Object node,
long defaultValue)
nodeLongValue
public static long nodeLongValue(Object node)
nodeBooleanValue
public static boolean nodeBooleanValue(Object node,
boolean defaultValue)
nodeBooleanValue
public static boolean nodeBooleanValue(Object node)
nodeTimeValue
public static TimeValue nodeTimeValue(Object node,
TimeValue defaultValue)
nodeTimeValue
public static TimeValue nodeTimeValue(Object node)
Copyright © 2009-2012. All Rights Reserved.