@Override public String toString() { return StringUtils.asUTFString(bytes, offset, size); }
public static String asUTFString(byte[] content) { return asUTFString(content, 0, content.length); }
public PartitionDefinition(DataInput in) throws IOException { this.index = in.readUTF(); this.shardId = in.readInt(); if (in.readBoolean()) { this.slice = new Slice(in.readInt(), in.readInt()); } else { this.slice = null; } if (in.readBoolean()) { int length = in.readInt(); byte[] utf = new byte[length]; in.readFully(utf); this.serializedSettings = StringUtils.asUTFString(utf); } else { this.serializedSettings = null; } if (in.readBoolean()) { int length = in.readInt(); byte[] utf = new byte[length]; in.readFully(utf); this.serializedMapping = StringUtils.asUTFString(utf); } else { this.serializedMapping = null; } int length = in.readInt(); locations = new String[length]; for (int i = 0; i < length; i++) { locations[i] = in.readUTF(); } }
/** * Generate the stream of bytes as hex pairs separated by ' '. */ @Override public String toString() { return (ba != null ? StringUtils.asUTFString(ba.bytes(), 0, ba.length()) : ""); }
if (log.isDebugEnabled()) { log.debug("Skipping a scroll search hit that resulted in error while reading: [" + StringUtils.asUTFString(hitSection.bytes(), hitSection.offset(), hitSection.length()) + "]"); } else {
@Override public String toString() { return StringUtils.asUTFString(bytes, offset, size); }
@Override public String toString() { return StringUtils.asUTFString(bytes, offset, size); }
@Override public String toString() { return StringUtils.asUTFString(bytes, offset, size); }
@Override public String toString() { return StringUtils.asUTFString(bytes, offset, size); }
public static String asUTFString(byte[] content) { return asUTFString(content, 0, content.length); }
public static String asUTFString(byte[] content) { return asUTFString(content, 0, content.length); }
public static String asUTFString(byte[] content) { return asUTFString(content, 0, content.length); }
public static String asUTFString(byte[] content) { return asUTFString(content, 0, content.length); }
@Override public void readFields(DataInput in) throws IOException { nodeIp = in.readUTF(); httpPort = in.readInt(); nodeId = in.readUTF(); nodeName = in.readUTF(); shardId = in.readUTF(); onlyNode = in.readBoolean(); int length = in.readInt(); byte[] utf = new byte[length]; in.readFully(utf); mapping = StringUtils.asUTFString(utf); length = in.readInt(); utf = new byte[length]; in.readFully(utf); settings = StringUtils.asUTFString(utf); }
public PartitionDefinition(DataInput in) throws IOException { this.index = in.readUTF(); this.shardId = in.readInt(); if (in.readBoolean()) { this.slice = new Slice(in.readInt(), in.readInt()); } else { this.slice = null; } if (in.readBoolean()) { int length = in.readInt(); byte[] utf = new byte[length]; in.readFully(utf); this.serializedSettings = StringUtils.asUTFString(utf); } else { this.serializedSettings = null; } if (in.readBoolean()) { int length = in.readInt(); byte[] utf = new byte[length]; in.readFully(utf); this.serializedMapping = StringUtils.asUTFString(utf); } else { this.serializedMapping = null; } int length = in.readInt(); locations = new String[length]; for (int i = 0; i < length; i++) { locations[i] = in.readUTF(); } }
public PartitionDefinition(DataInput in) throws IOException { this.index = in.readUTF(); this.shardId = in.readInt(); if (in.readBoolean()) { this.slice = new Slice(in.readInt(), in.readInt()); } else { this.slice = null; } if (in.readBoolean()) { int length = in.readInt(); byte[] utf = new byte[length]; in.readFully(utf); this.serializedSettings = StringUtils.asUTFString(utf); } else { this.serializedSettings = null; } if (in.readBoolean()) { int length = in.readInt(); byte[] utf = new byte[length]; in.readFully(utf); this.serializedMapping = StringUtils.asUTFString(utf); } else { this.serializedMapping = null; } int length = in.readInt(); locations = new String[length]; for (int i = 0; i < length; i++) { locations[i] = in.readUTF(); } }
public PartitionDefinition(DataInput in) throws IOException { this.index = in.readUTF(); this.shardId = in.readInt(); if (in.readBoolean()) { this.slice = new Slice(in.readInt(), in.readInt()); } else { this.slice = null; } if (in.readBoolean()) { int length = in.readInt(); byte[] utf = new byte[length]; in.readFully(utf); this.serializedSettings = StringUtils.asUTFString(utf); } else { this.serializedSettings = null; } if (in.readBoolean()) { int length = in.readInt(); byte[] utf = new byte[length]; in.readFully(utf); this.serializedMapping = StringUtils.asUTFString(utf); } else { this.serializedMapping = null; } int length = in.readInt(); locations = new String[length]; for (int i = 0; i < length; i++) { locations[i] = in.readUTF(); } }
/** * Generate the stream of bytes as hex pairs separated by ' '. */ @Override public String toString() { return (ba != null ? StringUtils.asUTFString(ba.bytes(), 0, ba.length()) : ""); }
if (log.isDebugEnabled()) { log.debug("Skipping a scroll search hit that resulted in error while reading: [" + StringUtils.asUTFString(hitSection.bytes(), hitSection.offset(), hitSection.length()) + "]"); } else {
if (log.isDebugEnabled()) { log.debug("Skipping a scroll search hit that resulted in error while reading: [" + StringUtils.asUTFString(hitSection.bytes(), hitSection.offset(), hitSection.length()) + "]"); } else {