/** * Returns the partitions within which the column values exist. * * @return List of ranges for the column values. */ @Nullable public Set<Integer> getPartitions() { return _partitions; }
@Nullable @Override protected String getLoadMode() { return "MMAP"; }
public static class R11 { @Nullable private String text; @Override public boolean equals(Object o) { if (!(o instanceof R11)) return false; R11 that = (R11)o; if (this.text == null) return that.text == null; return this.text.equals(that.text); } }
public static class NullableBytesTest { @Nullable byte[] bytes; NullableBytesTest() { } NullableBytesTest(byte[] bytes) { this.bytes = bytes; } @Override public boolean equals(Object obj) { return obj instanceof NullableBytesTest && Arrays.equals(((NullableBytesTest) obj).bytes, this.bytes); } }
private transient @Nullable Schema schema;
/** * Creates Avro Writer and Reader for a specific type. * * <p>Given an input type, and possible the current schema, and a previously known schema (also known as writer * schema) create will deduce the best way to initalize a reader and writer according to the following rules: * <ul> * <li>If type is an Avro generated class (an {@link SpecificRecord} then the reader would use the * previousSchema for reading (if present) otherwise it would use the schema attached to the auto generated * class. * <li>If the type is a GenericRecord then the reader and the writer would be created with the supplied * (mandatory) schema. * <li>Otherwise, we use Avro's reflection based reader and writer that would deduce the schema via reflection. * If the previous schema is also present (when restoring a serializer for example) then the reader would be * created with both schemas. * </ul> */ static <T> AvroFactory<T> create(Class<T> type, @Nullable Schema currentSchema, @Nullable Schema previousSchema) { final ClassLoader cl = Thread.currentThread().getContextClassLoader(); if (SpecificRecord.class.isAssignableFrom(type)) { return fromSpecific(type, cl, Optional.ofNullable(previousSchema)); } if (GenericRecord.class.isAssignableFrom(type)) { return fromGeneric(cl, currentSchema); } return fromReflective(type, cl, Optional.ofNullable(previousSchema)); }
@Nullable String title; long authorId;
public String forTableView(String tableName, String view, @Nullable String tableType) { String url = StringUtil.join("/", StringUtils.chomp(_baseUrl, "/"), "tables", tableName, view); if (tableType != null) { url += "?tableType=" + tableType; } return url; }
private int keyId; private long expiryDate; @Nullable private byte[] keyBytes = null; private static final int MAX_KEY_LEN = 1024 * 1024;
/** * Host of the message. This is the value from the message. * * @return Message host. */ @Nullable String host();
/** * Message part of the overall syslog message. * * @return Message part of the overall syslog message. */ @Nullable String message();
/** * Version of the message. * * @return Message version */ @Nullable Integer version();
/** * @return The value of the {@code host} attribute */ @JsonProperty(required = false) @Override public @Nullable String host() { return host; }