@Test public void testPartition() { Table table = odps.tables().get(TABLE_NAME); Partition partition = table.getPartition(new PartitionSpec("pt='1',ds='1'")); Assert.assertTrue("size must > 0", partition.getSize() > 0); Assert.assertTrue("physical size must > 0", partition.getPhysicalSize() > 0); partition.getCreatedTime(); partition.getLastMetaModifiedTime(); partition.getLastDataModifiedTime(); }
Partition(PartitionModel model, String projectName, String tableName, RestClient client) { this.model = model; this.client = client; this.project = projectName; this.table = tableName; this.isArchived = false; this.isExstore = false; this.isExtendInfoLoaded = false; this.lifeCycle = -1; this.physicalSize = 0; this.fileNum = 0; }
Partition extends LazyLoad { Partition(PartitionModel model, String projectName, String tableName, RestClient client) { this.model = model; this.client = client; this.project = projectName; this.table = tableName; this.isArchived = false; this.isExstore = false; this.isExtendInfoLoaded = false; this.lifeCycle = -1; this.physicalSize = 0; this.fileNum = 0; } }
Partition extends LazyLoad { Partition(PartitionModel model, String projectName, String tableName, RestClient client) { this.model = model; this.client = client; this.project = projectName; this.table = tableName; this.isArchived = false; this.isExstore = false; this.isExtendInfoLoaded = false; this.lifeCycle = -1; this.physicalSize = 0; this.fileNum = 0; } Partition(PartitionModel model, String projectName, String tableName,
            RestClient client);   Partition(PartitionSpec spec, String projectName, String tableName,
            RestClient client); }
Partition extends LazyLoad { Partition(PartitionModel model, String projectName, String tableName, RestClient client) { this.model = model; this.client = client; this.project = projectName; this.table = tableName; this.isArchived = false; this.isExstore = false; this.isExtendInfoLoaded = false; this.lifeCycle = -1; this.physicalSize = 0; this.fileNum = 0; } Partition(PartitionModel model, String projectName, String tableName,
            RestClient client);   Partition(PartitionSpec spec, String projectName, String tableName,
            RestClient client); PartitionSpec getPartitionSpec(); Date getCreatedTime(); Date getLastMetaModifiedTime(); Date getLastDataModifiedTime(); long getRecordNum(); boolean isArchived(); boolean isExstore(); long getLifeCycle(); long getPhysicalSize(); long getFileNum(); long getSize(); String getReserved(); Table.ClusterInfo getClusterInfo(); @Override void reload(); }
Partition extends LazyLoad { Partition(PartitionModel model, String projectName, String tableName, RestClient client) { this.model = model; this.client = client; this.project = projectName; this.table = tableName; this.isArchived = false; this.isExstore = false; this.isExtendInfoLoaded = false; this.lifeCycle = -1; this.physicalSize = 0; this.fileNum = 0; } Partition(PartitionModel model, String projectName, String tableName,
            RestClient client);   Partition(PartitionSpec spec, String projectName, String tableName,
            RestClient client); PartitionSpec getPartitionSpec(); Date getCreatedTime(); Date getLastMetaModifiedTime(); Date getLastDataModifiedTime(); long getRecordNum(); boolean isArchived(); boolean isExstore(); long getLifeCycle(); long getPhysicalSize(); long getFileNum(); long getSize(); String getReserved(); Table.ClusterInfo getClusterInfo(); @Override void reload();  }