org.apache.hadoop.zebra.types
Class Partition.PartitionInfo

java.lang.Object
  extended by org.apache.hadoop.zebra.types.Partition.PartitionInfo
Enclosing class:
Partition

public class Partition.PartitionInfo
extends Object


Constructor Summary
Partition.PartitionInfo(Schema schema)
           
 
Method Summary
 CGSchema generateDefaultCGSchema(String name, String compressor, String serializer, String owner, String group, short perm, int defaultCGIndex, String comparator)
           
 Map<String,HashSet<org.apache.hadoop.zebra.types.Partition.PartitionInfo.ColumnMappingEntry>> getColMap()
           
 HashSet<org.apache.hadoop.zebra.types.Partition.PartitionInfo.ColumnMappingEntry> getSplitMap(Schema.ColumnSchema fs)
          returns "hash key-to-(sub)column" map on a (sub)column which is MAP-split across different hash keys
 boolean setCGIndex(Schema.ColumnSchema fs, int ri, int fi, String name)
          set a record field split (sub)column
 boolean setKeyCGIndex(Schema.ColumnSchema fs, int ri, int fi, String name, HashSet<String> keys)
          set a MAP key split (sub)column
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Partition.PartitionInfo

public Partition.PartitionInfo(Schema schema)
Method Detail

getColMap

public Map<String,HashSet<org.apache.hadoop.zebra.types.Partition.PartitionInfo.ColumnMappingEntry>> getColMap()

setKeyCGIndex

public boolean setKeyCGIndex(Schema.ColumnSchema fs,
                             int ri,
                             int fi,
                             String name,
                             HashSet<String> keys)
set a MAP key split (sub)column


setCGIndex

public boolean setCGIndex(Schema.ColumnSchema fs,
                          int ri,
                          int fi,
                          String name)
set a record field split (sub)column


generateDefaultCGSchema

public CGSchema generateDefaultCGSchema(String name,
                                        String compressor,
                                        String serializer,
                                        String owner,
                                        String group,
                                        short perm,
                                        int defaultCGIndex,
                                        String comparator)
                                 throws ParseException
Throws:
ParseException

getSplitMap

public HashSet<org.apache.hadoop.zebra.types.Partition.PartitionInfo.ColumnMappingEntry> getSplitMap(Schema.ColumnSchema fs)
returns "hash key-to-(sub)column" map on a (sub)column which is MAP-split across different hash keys



Copyright © ${year} The Apache Software Foundation