org.apache.hadoop.zebra.types
Class CGSchema

java.lang.Object
  extended by org.apache.hadoop.zebra.types.CGSchema

public class CGSchema
extends Object

ColumnGroup Schema. This object is first written to a schema file when the ColumnGroup is initially created, and is used to communicate meta information among writers.


Constructor Summary
CGSchema()
           
CGSchema(Schema schema, boolean sorted, String comparator)
           
CGSchema(Schema schema, boolean sorted, String comparator, String name, String serializer, String compressor, String owner, String group, short perm)
           
 
Method Summary
 void create(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path parent)
           
static void drop(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path parent)
           
 boolean equals(Object obj)
           
static boolean exists(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path parent)
           
 String getComparator()
           
 String getCompressor()
           
 String getGroup()
           
 String getName()
           
 String getOwner()
           
 short getPerm()
           
 Schema getSchema()
           
 String getSerializer()
           
 boolean isSorted()
           
static CGSchema load(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path parent)
           
static org.apache.hadoop.fs.Path makeFilePath(org.apache.hadoop.fs.Path parent)
           
 void read(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path parent)
           
 void setName(String newName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CGSchema

public CGSchema()

CGSchema

public CGSchema(Schema schema,
                boolean sorted,
                String comparator)

CGSchema

public CGSchema(Schema schema,
                boolean sorted,
                String comparator,
                String name,
                String serializer,
                String compressor,
                String owner,
                String group,
                short perm)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

makeFilePath

public static org.apache.hadoop.fs.Path makeFilePath(org.apache.hadoop.fs.Path parent)

load

public static CGSchema load(org.apache.hadoop.fs.FileSystem fs,
                            org.apache.hadoop.fs.Path parent)
                     throws IOException,
                            ParseException
Throws:
IOException
ParseException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

exists

public static boolean exists(org.apache.hadoop.fs.FileSystem fs,
                             org.apache.hadoop.fs.Path parent)

drop

public static void drop(org.apache.hadoop.fs.FileSystem fs,
                        org.apache.hadoop.fs.Path parent)
                 throws IOException
Throws:
IOException

isSorted

public boolean isSorted()

getComparator

public String getComparator()

getName

public String getName()

setName

public void setName(String newName)

getSerializer

public String getSerializer()

getCompressor

public String getCompressor()

getGroup

public String getGroup()

getPerm

public short getPerm()

getOwner

public String getOwner()

create

public void create(org.apache.hadoop.fs.FileSystem fs,
                   org.apache.hadoop.fs.Path parent)
            throws IOException
Throws:
IOException

read

public void read(org.apache.hadoop.fs.FileSystem fs,
                 org.apache.hadoop.fs.Path parent)
          throws IOException,
                 ParseException
Throws:
IOException
ParseException

getSchema

public Schema getSchema()


Copyright © ${year} The Apache Software Foundation