org.kitesdk.data
Class ColumnMapping

java.lang.Object
  extended by org.kitesdk.data.ColumnMapping

@Immutable
public class ColumnMapping
extends Object

A descriptor for an entity's column mappings, which defines how an entity maps to a columnar store.

Since:
0.14.0

Nested Class Summary
static class ColumnMapping.Builder
          A fluent builder to aid in constructing a ColumnMapping.
 
Method Summary
 boolean equals(Object o)
           
 FieldMapping getFieldMapping(String fieldName)
           
 Collection<FieldMapping> getFieldMappings()
           
 Set<String> getRequiredColumnFamilies()
          Get the column families required by this schema.
 Set<String> getRequiredColumns()
          Get the columns required by this schema.
 int hashCode()
           
 String toString()
           
 String toString(boolean pretty)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getFieldMappings

public Collection<FieldMapping> getFieldMappings()

getFieldMapping

public FieldMapping getFieldMapping(String fieldName)

getRequiredColumns

public Set<String> getRequiredColumns()
Get the columns required by this schema.

Returns:
The set of columns

getRequiredColumnFamilies

public Set<String> getRequiredColumnFamilies()
Get the column families required by this schema.

Returns:
The set of column families.

equals

public boolean equals(@Nullable
                      Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(boolean pretty)


Copyright © 2013–2014. All rights reserved.