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

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

public class KeyParser
extends BaseKeyParser


Field Summary
static String DATATYPE_FIELD
           
static String DELIMITER
           
static String FIELDNAME_FIELD
           
static String SELECTOR_FIELD
           
static String UID_FIELD
           
 
Fields inherited from class org.apache.accumulo.examples.wikisearch.util.BaseKeyParser
COLUMN_FAMILY_FIELD, COLUMN_QUALIFIER_FIELD, key, keyFields, ROW_FIELD
 
Constructor Summary
KeyParser()
           
 
Method Summary
 BaseKeyParser duplicate()
           
 String getDataType()
           
 String getDataTypeUid()
           
 String getFieldName()
           
 String getFieldValue()
           
 String getSelector()
           
 String getUid()
           
 void parse(Key key)
          Parses a Key object into its constituent fields.
 
Methods inherited from class org.apache.accumulo.examples.wikisearch.util.BaseKeyParser
getColumnFamily, getColumnQualifier, getFieldNames, getFieldValue, getKey, getRow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECTOR_FIELD

public static final String SELECTOR_FIELD
See Also:
Constant Field Values

DATATYPE_FIELD

public static final String DATATYPE_FIELD
See Also:
Constant Field Values

FIELDNAME_FIELD

public static final String FIELDNAME_FIELD
See Also:
Constant Field Values

UID_FIELD

public static final String UID_FIELD
See Also:
Constant Field Values

DELIMITER

public static final String DELIMITER
See Also:
Constant Field Values
Constructor Detail

KeyParser

public KeyParser()
Method Detail

parse

public void parse(Key key)
Description copied from class: BaseKeyParser
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.

Overrides:
parse in class BaseKeyParser

duplicate

public BaseKeyParser duplicate()
Overrides:
duplicate in class BaseKeyParser

getSelector

public String getSelector()

getDataType

public String getDataType()

getFieldName

public String getFieldName()

getUid

public String getUid()

getDataTypeUid

public String getDataTypeUid()

getFieldValue

public String getFieldValue()


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.