Package org.kiji.schema.avro

Examples of org.kiji.schema.avro.TableLayoutDesc


      .build();
  }

  @Test
  public void testNegativeMaxFilesize() throws Exception {
    final TableLayoutDesc desc = TableLayoutDesc.newBuilder(makeMinimalValidLayout())
      .setMaxFilesize(-1L)
      .build();

    try {
      KijiTableLayout.newLayout(desc);
View Full Code Here


    }
  }

  @Test
  public void testZeroMemstoreFlushsize() throws Exception {
    final TableLayoutDesc desc = TableLayoutDesc.newBuilder(makeMinimalValidLayout())
      .setMemstoreFlushsize(0L)
      .build();

    try {
      KijiTableLayout.newLayout(desc);
View Full Code Here

    }
  }

  @Test
  public void testNegativeMemstoreFlushsize() throws Exception {
    final TableLayoutDesc desc = TableLayoutDesc.newBuilder(makeMinimalValidLayout())
      .setMemstoreFlushsize(-1L)
      .build();

    try {
      KijiTableLayout.newLayout(desc);
View Full Code Here

    }
  }

  @Test
  public void testMaxfilesizeOnOlderLayoutVersion() throws Exception {
    final TableLayoutDesc desc = TableLayoutDesc.newBuilder(makeMinimalValidLayout())
      .setMaxFilesize(10L)
      .setVersion(TABLE_LAYOUT_1_1)
      .build();

    try {
View Full Code Here

    }
  }

  @Test
  public void testMemstoreFlushsizeOnOlderLayoutVersion() throws Exception {
    final TableLayoutDesc desc = TableLayoutDesc.newBuilder(makeMinimalValidLayout())
      .setMemstoreFlushsize(10L)
      .setVersion(TABLE_LAYOUT_1_1)
      .build();

    try {
View Full Code Here

    }
  }

  @Test
  public void testZeroBlockSize() throws Exception {
    final TableLayoutDesc desc = TableLayoutDesc.newBuilder(makeMinimalValidLayout())
      .setLocalityGroups(
        Lists.newArrayList(
          LocalityGroupDesc.newBuilder(makeMinimalLocalityGroup())
            .setBlockSize(0)
            .build()))
View Full Code Here

    }
  }

  @Test
  public void testNegativeBlockSize() throws Exception {
    final TableLayoutDesc desc = TableLayoutDesc.newBuilder(makeMinimalValidLayout())
      .setLocalityGroups(
        Lists.newArrayList(
          LocalityGroupDesc.newBuilder(makeMinimalLocalityGroup())
            .setBlockSize(-1)
            .build()))
View Full Code Here

    }
  }

  @Test
  public void testBlockSizeOnOlderLayoutVersion() throws Exception {
    final TableLayoutDesc desc = TableLayoutDesc.newBuilder(makeMinimalValidLayout())
      .setVersion(TABLE_LAYOUT_1_1)
      .setLocalityGroups(
        Lists.newArrayList(
          LocalityGroupDesc.newBuilder(makeMinimalLocalityGroup())
            .setBlockSize(10)
View Full Code Here

    }
  }

  @Test
  public void testBloomTypeOnOlderLayoutVersion() throws Exception {
    final TableLayoutDesc desc = TableLayoutDesc.newBuilder(makeMinimalValidLayout())
      .setVersion(TABLE_LAYOUT_1_1)
      .setLocalityGroups(
        Lists.newArrayList(
          LocalityGroupDesc.newBuilder(makeMinimalLocalityGroup())
            .setBloomType(BloomType.ROWCOL)
View Full Code Here

  @Test
  public void testDuplicateQualifierName() throws Exception {
    RowKeyFormat2 format = makeHashPrefixedRowKeyFormat();
    // Reference layout with a single column: "family_name:column_name"
    final TableLayoutDesc desc = TableLayoutDesc.newBuilder()
        .setName("table_name")
        .setKeysFormat(format)
        .setVersion(TABLE_LAYOUT_VERSION)
        .setLocalityGroups(Lists.newArrayList(
            LocalityGroupDesc.newBuilder()
View Full Code Here

TOP

Related Classes of org.kiji.schema.avro.TableLayoutDesc

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.