Tabnine Logo
PartitionSchema.isSimpleRangePartitioning
Code IndexAdd Tabnine to your IDE (free)

How to use
isSimpleRangePartitioning
method
in
org.apache.kudu.client.PartitionSchema

Best Java code snippets using org.apache.kudu.client.PartitionSchema.isSimpleRangePartitioning (Showing top 2 results out of 315)

origin: org.apache.kudu/kudu-client

if (partitionSchema.isSimpleRangePartitioning()) {
 if (Bytes.memcmp(rangeLowerBound, scanner.lowerBoundPrimaryKey) < 0) {
  rangeLowerBound = scanner.lowerBoundPrimaryKey;
origin: org.apache.kudu/kudu-client

/**
 * Test creating and deleting a table through a KuduClient.
 */
@Test(timeout = 100000)
public void testCreateDeleteTable() throws Exception {
 // Check that we can create a table.
 client.createTable(TABLE_NAME, basicSchema, getBasicCreateTableOptions());
 assertFalse(client.getTablesList().getTablesList().isEmpty());
 assertTrue(client.getTablesList().getTablesList().contains(TABLE_NAME));
 // Check that we can delete it.
 client.deleteTable(TABLE_NAME);
 assertFalse(client.getTablesList().getTablesList().contains(TABLE_NAME));
 // Check that we can re-recreate it, with a different schema.
 List<ColumnSchema> columns = new ArrayList<>(basicSchema.getColumns());
 columns.add(new ColumnSchema.ColumnSchemaBuilder("one more", Type.STRING).build());
 Schema newSchema = new Schema(columns);
 client.createTable(TABLE_NAME, newSchema, getBasicCreateTableOptions());
 // Check that we can open a table and see that it has the new schema.
 KuduTable table = client.openTable(TABLE_NAME);
 assertEquals(newSchema.getColumnCount(), table.getSchema().getColumnCount());
 assertTrue(table.getPartitionSchema().isSimpleRangePartitioning());
 // Check that the block size parameter we specified in the schema is respected.
 assertEquals(4096, newSchema.getColumn("column3_s").getDesiredBlockSize());
 assertEquals(ColumnSchema.Encoding.DICT_ENCODING,
        newSchema.getColumn("column3_s").getEncoding());
 assertEquals(ColumnSchema.CompressionAlgorithm.LZ4,
        newSchema.getColumn("column3_s").getCompressionAlgorithm());
}
org.apache.kudu.clientPartitionSchemaisSimpleRangePartitioning

Javadoc

Returns true if the partition schema if the partition schema does not include any hash components, and the range columns match the table's primary key columns.

Popular methods of PartitionSchema

  • getHashBucketSchemas
  • getRangeSchema
  • <init>
    Creates a new partition schema from the range and hash bucket schemas.
  • encodePartitionKey
    Returns the encoded partition key of the row.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • findViewById (Activity)
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JComboBox (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now