Package io.deephaven.configuration
Record Class DisCommandResult.LocationResult
java.lang.Object
java.lang.Record
io.deephaven.configuration.DisCommandResult.LocationResult
- Record Components:
namespace- namespace of the locationtableName- table name of the locationinternalPartition- internal partition, or null for aggregate keyscolumnPartition- column partitionfolder- physical folder path, or null if the DIS did not report onestatus- the operation status for this locationmessage- status messagehasActiveProcessor- true if this location is actively being tailed
- Enclosing class:
- DisCommandResult
@ScriptApi
public static record DisCommandResult.LocationResult(@NotNull String namespace, @NotNull String tableName, @Nullable String internalPartition, @NotNull String columnPartition, @Nullable String folder, @NotNull DisCommandResult.LocationStatus status, @NotNull String message, boolean hasActiveProcessor)
extends Record
Result of a truncate or delete operation on a single location.
Uses simple string fields for the location key.
-
Constructor Summary
ConstructorsConstructorDescriptionLocationResult(@NotNull String namespace, @NotNull String tableName, @Nullable String internalPartition, @NotNull String columnPartition, @Nullable String folder, @NotNull DisCommandResult.LocationStatus status, @NotNull String message, boolean hasActiveProcessor) Creates an instance of aLocationResultrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns the value of thecolumnPartitionrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Stringfolder()Returns the value of thefolderrecord component.@NotNull StringbooleanReturns the value of thehasActiveProcessorrecord component.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theinternalPartitionrecord component.@NotNull Stringmessage()Returns the value of themessagerecord component.@NotNull StringReturns the value of thenamespacerecord component.@NotNull DisCommandResult.LocationStatusstatus()Returns the value of thestatusrecord component.@NotNull StringReturns the value of thetableNamerecord component.@NotNull StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocationResult
public LocationResult(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName, @Nullable @Nullable String internalPartition, @NotNull @NotNull String columnPartition, @Nullable @Nullable String folder, @NotNull @NotNull DisCommandResult.LocationStatus status, @NotNull @NotNull String message, boolean hasActiveProcessor) Creates an instance of aLocationResultrecord class.- Parameters:
namespace- the value for thenamespacerecord componenttableName- the value for thetableNamerecord componentinternalPartition- the value for theinternalPartitionrecord componentcolumnPartition- the value for thecolumnPartitionrecord componentfolder- the value for thefolderrecord componentstatus- the value for thestatusrecord componentmessage- the value for themessagerecord componenthasActiveProcessor- the value for thehasActiveProcessorrecord component
-
-
Method Details
-
getKeyString
- Returns:
- a simple string representation of the location key
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-
internalPartition
Returns the value of theinternalPartitionrecord component.- Returns:
- the value of the
internalPartitionrecord component
-
columnPartition
Returns the value of thecolumnPartitionrecord component.- Returns:
- the value of the
columnPartitionrecord component
-
folder
Returns the value of thefolderrecord component.- Returns:
- the value of the
folderrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
hasActiveProcessor
public boolean hasActiveProcessor()Returns the value of thehasActiveProcessorrecord component.- Returns:
- the value of the
hasActiveProcessorrecord component
-