org.apache.accumulo.examples.wikisearch.util
Class BaseKeyParser

java.lang.Object
  extended by org.apache.accumulo.examples.wikisearch.util.BaseKeyParser
Direct Known Subclasses:
KeyParser

public class BaseKeyParser
extends Object


Field Summary
static String COLUMN_FAMILY_FIELD
           
static String COLUMN_QUALIFIER_FIELD
           
protected  Key key
           
protected  Map<String,String> keyFields
           
static String ROW_FIELD
           
 
Constructor Summary
BaseKeyParser()
           
 
Method Summary
 BaseKeyParser duplicate()
           
 String getColumnFamily()
           
 String getColumnQualifier()
           
 String[] getFieldNames()
           
 String getFieldValue(String fieldName)
           
 Key getKey()
           
 String getRow()
           
 void parse(Key key)
          Parses a Key object into its constituent fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

BaseKeyParser

public BaseKeyParser()
Method Detail

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.