public class Partition extends CellInfo
Modifier and Type | Field and Description |
---|---|
java.lang.String |
filename
Name of the file that contains the data
|
long |
recordCount
Total number of records in this partition
|
long |
size
Total size of data in this partition in bytes (uncompressed)
|
Constructor and Description |
---|
Partition() |
Partition(Partition other) |
Partition(java.lang.String filename,
CellInfo cell) |
Modifier and Type | Method and Description |
---|---|
Partition |
clone()
Returns a clone of this shape
|
void |
draw(java.awt.Graphics g,
double xscale,
double yscale)
Draws the shape to the given graphics and scale.
|
void |
draw(java.awt.Graphics g,
Rectangle fileMBR,
int imageWidth,
int imageHeight,
double scale)
Draws a shape to the given graphics.
|
boolean |
equals(java.lang.Object obj) |
void |
expand(Partition p) |
void |
fromText(Text text)
Retrieve information from the given text.
|
int |
hashCode() |
void |
readFields(java.io.DataInput in) |
Text |
toText(Text text)
Store current object as string in the given text appending text already there.
|
void |
write(java.io.DataOutput out) |
buffer, compareTo, contains, contains, contains, contains, distanceTo, expand, getCenterPoint, getHeight, getIntersection, getMaxDistance, getMaxDistanceTo, getMBR, getMinDistance, getMinDistanceTo, getWidth, invalidate, isIntersected, isValid, set, set, translate, union
public java.lang.String filename
public long recordCount
public long size
public Partition()
public Partition(java.lang.String filename, CellInfo cell)
public Partition(Partition other)
public void write(java.io.DataOutput out) throws java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in class CellInfo
java.io.IOException
public Text toText(Text text)
TextSerializable
toText
in interface TextSerializable
toText
in class CellInfo
public void fromText(Text text)
TextSerializable
fromText
in interface TextSerializable
fromText
in class CellInfo
public Partition clone()
Shape
public void expand(Partition p)
public void draw(java.awt.Graphics g, Rectangle fileMBR, int imageWidth, int imageHeight, double scale)
Shape
draw
in interface Shape
draw
in class Rectangle
g
- - the graphics or canvas to draw tofileMBR
- - the MBR of the file in which the shape is containedimageWidth
- - width of the image to drawimageHeight
- - height of the image to drawscale
- - the scale used to convert shape coordinates to image coordinatespublic void draw(java.awt.Graphics g, double xscale, double yscale)
Shape