Java Code Examples for java.util.Map.Entry#getClass()
The following examples show how to use
java.util.Map.Entry#getClass() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CompositeQueryLogicTest.java From datawave with Apache License 2.0 | 5 votes |
@Override public TestQueryResponse transform(Entry<?,?> input) { if (input instanceof Entry<?,?>) { @SuppressWarnings("unchecked") Entry<Key,org.apache.accumulo.core.data.Value> entry = (Entry<Key,org.apache.accumulo.core.data.Value>) input; TestQueryResponse r = new TestQueryResponse(); r.setKey(entry.getKey().toString()); r.setValue(new String(entry.getValue().toString())); return r; } else { throw new IllegalArgumentException("Invalid input type: " + input.getClass()); } }
Example 2
Source File: CompositeQueryLogicTest.java From datawave with Apache License 2.0 | 5 votes |
@Override public TestQueryResponse transform(Entry<?,?> input) { if (input instanceof Entry<?,?>) { @SuppressWarnings("unchecked") Entry<Key,org.apache.accumulo.core.data.Value> entry = (Entry<Key,org.apache.accumulo.core.data.Value>) input; TestQueryResponse r = new TestQueryResponse(); r.setKey(entry.getKey().toString()); r.setValue(new String(entry.getValue().get())); return r; } else { throw new IllegalArgumentException("Invalid input type: " + input.getClass()); } }