public class CommandOperation extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ERR_MSGS |
String |
name |
static String |
ROOT_OBJ |
Constructor and Description |
---|
CommandOperation(String operationName,
Object metaData) |
Modifier and Type | Method and Description |
---|---|
void |
addError(String s) |
static List<Map> |
captureErrors(List<CommandOperation> ops) |
static List<CommandOperation> |
clone(List<CommandOperation> ops) |
CommandOperation |
getCopy() |
Map<String,Object> |
getDataMap() |
List<String> |
getErrors() |
Map |
getMap(String key,
Map def) |
String |
getStr(String key)
Get a required field.
|
String |
getStr(String key,
String def) |
List<String> |
getStrs(String key) |
List<String> |
getStrs(String key,
List<String> def)
Get collection of values for a key.
|
Object |
getVal(String key) |
Map<String,Object> |
getValuesExcluding(String... keys)
Get all the values from the metadata for the command
without the specified keys
|
boolean |
hasError() |
static List<CommandOperation> |
parse(Reader rdr)
Parse the command operations into command objects
|
static List<CommandOperation> |
readCommands(Iterable<ContentStream> streams,
SolrQueryResponse resp) |
void |
setCommandData(Object o) |
String |
toString() |
void |
unknownOperation() |
public final String name
public static final String ERR_MSGS
public static final String ROOT_OBJ
public void setCommandData(Object o)
public void unknownOperation()
public List<String> getStrs(String key, List<String> def)
public boolean hasError()
public void addError(String s)
public Map<String,Object> getValuesExcluding(String... keys)
public static List<Map> captureErrors(List<CommandOperation> ops)
public static List<CommandOperation> parse(Reader rdr) throws IOException
IOException
public CommandOperation getCopy()
public static List<CommandOperation> readCommands(Iterable<ContentStream> streams, SolrQueryResponse resp) throws IOException
IOException
public static List<CommandOperation> clone(List<CommandOperation> ops)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.