Class Tablespace.TablespaceRecord

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.yamcs.yarch.rocksdb.protobuf.Tablespace.TablespaceRecord
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Tablespace.TablespaceRecordOrBuilder
Enclosing class:
Tablespace

public static final class Tablespace.TablespaceRecord extends com.google.protobuf.GeneratedMessageV3 implements Tablespace.TablespaceRecordOrBuilder

  This is used to encode values in the tablespace metadata database
 
Protobuf type TablespaceRecord
See Also:
  • Field Details

    • TBSINDEX_FIELD_NUMBER

      public static final int TBSINDEX_FIELD_NUMBER
      See Also:
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
    • INSTANCENAME_FIELD_NUMBER

      public static final int INSTANCENAME_FIELD_NUMBER
      See Also:
    • TABLENAME_FIELD_NUMBER

      public static final int TABLENAME_FIELD_NUMBER
      See Also:
    • HISTOGRAMCOLUMNNAME_FIELD_NUMBER

      public static final int HISTOGRAMCOLUMNNAME_FIELD_NUMBER
      See Also:
    • PARTITIONVALUE_FIELD_NUMBER

      public static final int PARTITIONVALUE_FIELD_NUMBER
      See Also:
    • PARTITION_FIELD_NUMBER

      public static final int PARTITION_FIELD_NUMBER
      See Also:
    • PARAMETERFQN_FIELD_NUMBER

      public static final int PARAMETERFQN_FIELD_NUMBER
      See Also:
    • PARAMETERTYPE_FIELD_NUMBER

      public static final int PARAMETERTYPE_FIELD_NUMBER
      See Also:
    • PARTITIONINGSCHEMA_FIELD_NUMBER

      public static final int PARTITIONINGSCHEMA_FIELD_NUMBER
      See Also:
    • BUCKETPROPERTIES_FIELD_NUMBER

      public static final int BUCKETPROPERTIES_FIELD_NUMBER
      See Also:
    • TABLEDEFINITION_FIELD_NUMBER

      public static final int TABLEDEFINITION_FIELD_NUMBER
      See Also:
    • SECONDARYINDEX_FIELD_NUMBER

      public static final int SECONDARYINDEX_FIELD_NUMBER
      See Also:
    • TMINDEXNAME_FIELD_NUMBER

      public static final int TMINDEXNAME_FIELD_NUMBER
      See Also:
    • MEMBERID_FIELD_NUMBER

      public static final int MEMBERID_FIELD_NUMBER
      See Also:
    • PARSER

      @Deprecated public static final com.google.protobuf.Parser<Tablespace.TablespaceRecord> PARSER
      Deprecated.
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasTbsIndex

      public boolean hasTbsIndex()
      optional uint32 tbsIndex = 1;
      Specified by:
      hasTbsIndex in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      Whether the tbsIndex field is set.
    • getTbsIndex

      public int getTbsIndex()
      optional uint32 tbsIndex = 1;
      Specified by:
      getTbsIndex in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The tbsIndex.
    • hasType

      public boolean hasType()
      optional .TablespaceRecord.Type type = 2;
      Specified by:
      hasType in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      optional .TablespaceRecord.Type type = 2;
      Specified by:
      getType in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The type.
    • hasInstanceName

      public boolean hasInstanceName()
       used for all record types
      if not specified then instanceName = tablespaceName
       
      optional string instanceName = 3;
      Specified by:
      hasInstanceName in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      Whether the instanceName field is set.
    • getInstanceName

      public String getInstanceName()
       used for all record types
      if not specified then instanceName = tablespaceName
       
      optional string instanceName = 3;
      Specified by:
      getInstanceName in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The instanceName.
    • getInstanceNameBytes

      public com.google.protobuf.ByteString getInstanceNameBytes()
       used for all record types
      if not specified then instanceName = tablespaceName
       
      optional string instanceName = 3;
      Specified by:
      getInstanceNameBytes in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The bytes for instanceName.
    • hasTableName

      public boolean hasTableName()
      used for TABLE_DEFINITION, TABLE_PARTITION, HISTOGRAM and SECONDARY_INDEX
       
      optional string tableName = 4;
      Specified by:
      hasTableName in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      Whether the tableName field is set.
    • getTableName

      public String getTableName()
      used for TABLE_DEFINITION, TABLE_PARTITION, HISTOGRAM and SECONDARY_INDEX
       
      optional string tableName = 4;
      Specified by:
      getTableName in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The tableName.
    • getTableNameBytes

      public com.google.protobuf.ByteString getTableNameBytes()
      used for TABLE_DEFINITION, TABLE_PARTITION, HISTOGRAM and SECONDARY_INDEX
       
      optional string tableName = 4;
      Specified by:
      getTableNameBytes in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The bytes for tableName.
    • hasHistogramColumnName

      public boolean hasHistogramColumnName()
      used for HISTOGRAM 
       
      optional string histogramColumnName = 5;
      Specified by:
      hasHistogramColumnName in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      Whether the histogramColumnName field is set.
    • getHistogramColumnName

      public String getHistogramColumnName()
      used for HISTOGRAM 
       
      optional string histogramColumnName = 5;
      Specified by:
      getHistogramColumnName in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The histogramColumnName.
    • getHistogramColumnNameBytes

      public com.google.protobuf.ByteString getHistogramColumnNameBytes()
      used for HISTOGRAM 
       
      optional string histogramColumnName = 5;
      Specified by:
      getHistogramColumnNameBytes in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The bytes for histogramColumnName.
    • hasPartitionValue

      public boolean hasPartitionValue()
       used for TABLE_PARTITION: if partitioned by value - the value
       
      optional bytes partitionValue = 6;
      Specified by:
      hasPartitionValue in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      Whether the partitionValue field is set.
    • getPartitionValue

      public com.google.protobuf.ByteString getPartitionValue()
       used for TABLE_PARTITION: if partitioned by value - the value
       
      optional bytes partitionValue = 6;
      Specified by:
      getPartitionValue in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The partitionValue.
    • hasPartition

      public boolean hasPartition()
       used for TABLE_PARTITION, HISTOGRAM: if partition by time 
        - partitionDir is subdirectory name (usually something like 2017/11)
        - partitionStart/End are the times representing partition start(inclusive) and end (exclusive)
       
      optional .TimeBasedPartition partition = 7;
      Specified by:
      hasPartition in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      Whether the partition field is set.
    • getPartition

      public Tablespace.TimeBasedPartition getPartition()
       used for TABLE_PARTITION, HISTOGRAM: if partition by time 
        - partitionDir is subdirectory name (usually something like 2017/11)
        - partitionStart/End are the times representing partition start(inclusive) and end (exclusive)
       
      optional .TimeBasedPartition partition = 7;
      Specified by:
      getPartition in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The partition.
    • getPartitionOrBuilder

      public Tablespace.TimeBasedPartitionOrBuilder getPartitionOrBuilder()
       used for TABLE_PARTITION, HISTOGRAM: if partition by time 
        - partitionDir is subdirectory name (usually something like 2017/11)
        - partitionStart/End are the times representing partition start(inclusive) and end (exclusive)
       
      optional .TimeBasedPartition partition = 7;
      Specified by:
      getPartitionOrBuilder in interface Tablespace.TablespaceRecordOrBuilder
    • hasParameterFqn

      public boolean hasParameterFqn()
      used by the PARCHIVE_DATA to associate parameter ids to (parameter qualified  name, parameterType)
      tbsIndex is the parameter id 
      parameterType is a number assigned to (rawType,engType) combination
      parameterFqn is the parameter fully qualified name (something like /system/subsystem1/subsystem2/paraName)
       
      optional string parameterFqn = 8;
      Specified by:
      hasParameterFqn in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      Whether the parameterFqn field is set.
    • getParameterFqn

      public String getParameterFqn()
      used by the PARCHIVE_DATA to associate parameter ids to (parameter qualified  name, parameterType)
      tbsIndex is the parameter id 
      parameterType is a number assigned to (rawType,engType) combination
      parameterFqn is the parameter fully qualified name (something like /system/subsystem1/subsystem2/paraName)
       
      optional string parameterFqn = 8;
      Specified by:
      getParameterFqn in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The parameterFqn.
    • getParameterFqnBytes

      public com.google.protobuf.ByteString getParameterFqnBytes()
      used by the PARCHIVE_DATA to associate parameter ids to (parameter qualified  name, parameterType)
      tbsIndex is the parameter id 
      parameterType is a number assigned to (rawType,engType) combination
      parameterFqn is the parameter fully qualified name (something like /system/subsystem1/subsystem2/paraName)
       
      optional string parameterFqn = 8;
      Specified by:
      getParameterFqnBytes in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The bytes for parameterFqn.
    • hasParameterType

      public boolean hasParameterType()
      optional uint32 parameterType = 9;
      Specified by:
      hasParameterType in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      Whether the parameterType field is set.
    • getParameterType

      public int getParameterType()
      optional uint32 parameterType = 9;
      Specified by:
      getParameterType in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The parameterType.
    • hasPartitioningSchema

      public boolean hasPartitioningSchema()
      partitioning schema used currently for parameter archive (for tables is stored in the .def file)
       
      optional string partitioningSchema = 10;
      Specified by:
      hasPartitioningSchema in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      Whether the partitioningSchema field is set.
    • getPartitioningSchema

      public String getPartitioningSchema()
      partitioning schema used currently for parameter archive (for tables is stored in the .def file)
       
      optional string partitioningSchema = 10;
      Specified by:
      getPartitioningSchema in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The partitioningSchema.
    • getPartitioningSchemaBytes

      public com.google.protobuf.ByteString getPartitioningSchemaBytes()
      partitioning schema used currently for parameter archive (for tables is stored in the .def file)
       
      optional string partitioningSchema = 10;
      Specified by:
      getPartitioningSchemaBytes in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The bytes for partitioningSchema.
    • hasBucketProperties

      public boolean hasBucketProperties()
      bucketProperties
       
      optional .BucketProperties bucketProperties = 11;
      Specified by:
      hasBucketProperties in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      Whether the bucketProperties field is set.
    • getBucketProperties

      public Tablespace.BucketProperties getBucketProperties()
      bucketProperties
       
      optional .BucketProperties bucketProperties = 11;
      Specified by:
      getBucketProperties in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The bucketProperties.
    • getBucketPropertiesOrBuilder

      public Tablespace.BucketPropertiesOrBuilder getBucketPropertiesOrBuilder()
      bucketProperties
       
      optional .BucketProperties bucketProperties = 11;
      Specified by:
      getBucketPropertiesOrBuilder in interface Tablespace.TablespaceRecordOrBuilder
    • hasTableDefinition

      public boolean hasTableDefinition()
      used for TABLE_DEFINITION
       
      optional .ProtoTableDefinition tableDefinition = 12;
      Specified by:
      hasTableDefinition in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      Whether the tableDefinition field is set.
    • getTableDefinition

      public Tablespace.ProtoTableDefinition getTableDefinition()
      used for TABLE_DEFINITION
       
      optional .ProtoTableDefinition tableDefinition = 12;
      Specified by:
      getTableDefinition in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The tableDefinition.
    • getTableDefinitionOrBuilder

      public Tablespace.ProtoTableDefinitionOrBuilder getTableDefinitionOrBuilder()
      used for TABLE_DEFINITION
       
      optional .ProtoTableDefinition tableDefinition = 12;
      Specified by:
      getTableDefinitionOrBuilder in interface Tablespace.TablespaceRecordOrBuilder
    • hasSecondaryIndex

      public boolean hasSecondaryIndex()
      used for SECONDARY_INDEX
       
      optional .SecondaryIndex secondaryIndex = 13;
      Specified by:
      hasSecondaryIndex in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      Whether the secondaryIndex field is set.
    • getSecondaryIndex

      public Tablespace.SecondaryIndex getSecondaryIndex()
      used for SECONDARY_INDEX
       
      optional .SecondaryIndex secondaryIndex = 13;
      Specified by:
      getSecondaryIndex in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The secondaryIndex.
    • getSecondaryIndexOrBuilder

      public Tablespace.SecondaryIndexOrBuilder getSecondaryIndexOrBuilder()
      used for SECONDARY_INDEX
       
      optional .SecondaryIndex secondaryIndex = 13;
      Specified by:
      getSecondaryIndexOrBuilder in interface Tablespace.TablespaceRecordOrBuilder
    • hasTmIndexName

      public boolean hasTmIndexName()
      used for TM_INDEX
       
      optional string tmIndexName = 14;
      Specified by:
      hasTmIndexName in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      Whether the tmIndexName field is set.
    • getTmIndexName

      public String getTmIndexName()
      used for TM_INDEX
       
      optional string tmIndexName = 14;
      Specified by:
      getTmIndexName in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The tmIndexName.
    • getTmIndexNameBytes

      public com.google.protobuf.ByteString getTmIndexNameBytes()
      used for TM_INDEX
       
      optional string tmIndexName = 14;
      Specified by:
      getTmIndexNameBytes in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The bytes for tmIndexName.
    • getMemberIdList

      public List<Integer> getMemberIdList()
      used for PARCHIVE_AGGARR_INFO
       
      repeated uint32 memberId = 15;
      Specified by:
      getMemberIdList in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      A list containing the memberId.
    • getMemberIdCount

      public int getMemberIdCount()
      used for PARCHIVE_AGGARR_INFO
       
      repeated uint32 memberId = 15;
      Specified by:
      getMemberIdCount in interface Tablespace.TablespaceRecordOrBuilder
      Returns:
      The count of memberId.
    • getMemberId

      public int getMemberId(int index)
      used for PARCHIVE_AGGARR_INFO
       
      repeated uint32 memberId = 15;
      Specified by:
      getMemberId in interface Tablespace.TablespaceRecordOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The memberId at the given index.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Tablespace.TablespaceRecord parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Tablespace.TablespaceRecord parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Tablespace.TablespaceRecord parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Tablespace.TablespaceRecord parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Tablespace.TablespaceRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Tablespace.TablespaceRecord parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Tablespace.TablespaceRecord parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Tablespace.TablespaceRecord parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Tablespace.TablespaceRecord parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Tablespace.TablespaceRecord parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Tablespace.TablespaceRecord parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Tablespace.TablespaceRecord parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Tablespace.TablespaceRecord.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Tablespace.TablespaceRecord.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Tablespace.TablespaceRecord.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Tablespace.TablespaceRecord getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Tablespace.TablespaceRecord> parser()
    • getParserForType

      public com.google.protobuf.Parser<Tablespace.TablespaceRecord> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Tablespace.TablespaceRecord getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder