Package org.projectnessie.model
Class HiveTable
- java.lang.Object
-
- org.projectnessie.model.Contents
-
- org.projectnessie.model.HiveTable
-
- Direct Known Subclasses:
ImmutableHiveTable
@Immutable(prehash=true) public abstract class HiveTable extends Contents
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.projectnessie.model.Contents
Contents.Type
-
-
Constructor Summary
Constructors Constructor Description HiveTable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object another)Because of the List of byte arrays Immutables doesn't generate a correct equals.abstract @NotNull List<byte[]>getPartitions()abstract @javax.validation.constraints.Size(min=1) byte[]getTableDefinition()inthashCode()Because of the List of byte arrays Immutables doesn't generate a correct hashcode.
-
-
-
Method Detail
-
getTableDefinition
@Size(min=1) public abstract @javax.validation.constraints.Size(min=1) byte[] getTableDefinition()
-
getPartitions
@NotNull public abstract @NotNull List<byte[]> getPartitions()
-
hashCode
public int hashCode()
Because of the List of byte arrays Immutables doesn't generate a correct hashcode.We hand compute the List elements to ensure the byte arrays hash codes are consistent.
-
-