org.apache.accumulo.examples.wikisearch.util
Class BaseKeyParser
java.lang.Object
org.apache.accumulo.examples.wikisearch.util.BaseKeyParser
- Direct Known Subclasses:
- KeyParser
public class BaseKeyParser
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROW_FIELD
public static final String ROW_FIELD
- See Also:
- Constant Field Values
COLUMN_FAMILY_FIELD
public static final String COLUMN_FAMILY_FIELD
- See Also:
- Constant Field Values
COLUMN_QUALIFIER_FIELD
public static final String COLUMN_QUALIFIER_FIELD
- See Also:
- Constant Field Values
keyFields
protected Map<String,String> keyFields
key
protected Key key
BaseKeyParser
public BaseKeyParser()
parse
public void parse(Key key)
- Parses a Key object into its constituent fields. This method clears any prior values, so the object can be reused without requiring a new instantiation.
This default implementation makes the row, columnFamily, and columnQualifier available.
- Parameters:
key
-
getFieldValue
public String getFieldValue(String fieldName)
getFieldNames
public String[] getFieldNames()
duplicate
public BaseKeyParser duplicate()
getRow
public String getRow()
getColumnFamily
public String getColumnFamily()
getColumnQualifier
public String getColumnQualifier()
getKey
public Key getKey()
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.